Home / MCQ Bank / Computer
Computer Pointer

What will be the output of the following C code? #include <stdio.h> void foo(int*); int main() { int i = 10; foo((&i)++); } void foo(int *p) { printf("%d\n", *p); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Compile time error

Related Computer Questions

What will be the output of the following C code? #include <stdio.h> int main() { int a[4] = {1, 2, 3, 4}; int *p = &a[1]; int *ptr = &a[2]; ptr = ptr * 1; printf("%d\n", *ptr); } ______ node distributes code across the cluster. In Access press UP ARROW or CTRL+UP ARROW What does the term "thread synchronization" mean in multithreading? A ______ is a windows component that is designed to store other components so these can be organized efficiently?