What is the output of this C code? 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; }
1.Compile time error
2.10 20
3.Undefined value
4.10
Posted Date:-2022-03-20 07:55:42