Const – Point Out Errors 1. Point out the error in the program. A. Error: unknown pointer conversion B. Error: cannot convert ptr…
Const – Find Output of Program 1. What will be the output of the program? A. 128 B. Garbage value C. Error D. 0…
Strings – Yes / No Questions 1. Will the program compile successfully? A. Yes B. No 2. For the following statements will arr[3] and…
Strings – Point Out Correct Statements 1. Which of the following statements are correct about the program below? A. The code converts a string…
Strings – Find Output of Program 1. What will be the output of the program? A. Hello B. World C. Hello World D. WorldHello…
Strings – General Questions 1. Which of the following function sets first n characters of a string to a given character? A.…
Pointers – Yes / No Questions 1. Is there any difference between the following two statements? char *p=0; char *t=NULL; A. Yes B. No…
Pointers – True / False Questions 1. Are the expression *ptr++ and ++*ptr are same? A. True B. False 2. Will the program compile?…
Pointers – Point Out Correct Statements 1. Which of the following statements correctly declare a function that receives a pointer to pointer to a…
Pointers – Point Out Errors 1. Point out the compile time error in the program given below. A. Error: invalid assignment for x…