Home / MCQ Bank / Computer
Computer Fundamentals Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> 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; }

Select the correct option to test your answer:

More Computer Questions

In which file database table configuration is stored? What is the purpose of the 'do-while' loop in C#? What will be the output of the following Python code snippet? print('for'.isidentifier()) In C#, which method is used to copy elements from one array to another? What will be the output of the following Python code? random.randrange(1,100,10)