Q250
What will be the output of the following C code? #include void foo(const int *); int main() const int i = 10; printf("%d ", i); foo(&i); printf("%d", i); void foo(const int *i) *i = 20;
A.
Compile time error
AnswerB.
10 20
C.
Undefined value
D.
10
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board