6. Which of the statements is correct about the program?
A. Output: Garbage value
B. Output: 1
C. Output: 3
D. Error: Invalid indirection
Advertisement
7. Which statement will you add to the following program to ensure that the program outputs “GkFeed” on execution?
A. *pt=”;
B. pt=’\0′;
C. pt=’\n’;
D. *pt=’\0′;
Advertisement
8. In the following program add a statement in the function fact() such that the factorial gets stored in j.
A. j=s;
B. *j=s;
C. *j=&s;
D. &j=s;
Advertisement
Pages: 1 2
< PREVIOUS POSTPointers - Point Out Errors
NEXT POST >Pointers - True / False Questions