cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
what does this print?
what does this print?
Apr 23, 2022 at 1:04am UTC
roccosd26
(17)
1)
void fun(int *p);
void main()
{
int x [100] = {3,2,1};
fun(x);
printf("%d", x[0]);
}
void fun (int *p)
{
*p = 1;
}
Apr 23, 2022 at 1:57am UTC
George P
(5585)
So, what do you think will be displayed?
After all, this is your test, not ours. You are supposed to figure it out. On your own.
Apr 23, 2022 at 11:27am UTC
seeplus
(6456)
what does this print?
I refer to my answer here
http://www.cplusplus.com/forum/general/283283/
Topic archived. No new replies allowed.