Home / MCQ Bank / Computer
Computer Pointer Difficulty: Medium

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

Select the correct option to test your answer:

More Computer Questions

In an application created using the database wizard, the main menu is presented as a: In which data structure is the concept of "path compression" used? What will be the output of the following C code? #define sqr(x) x*x main() { int a1; a1=25/sqr(5); printf("%d",a1); } A code which uses more bits for each character then what is necessary is known as . . . . . . . . read only parameter that returns the width and height of the current device surface in inches.