Input / Output – General Questions1. In a file that contains the line "I am a boy\r\n" then on reading this line into…
Strings – Yes / No Questions1. Will the program compile successfully? A. Yes B. No 2. For the following statements will arr[3] and…
Strings – Point Out Correct Statements1. Which of the following statements are correct about the program below? A. The code converts a string…
Strings – Find Output of Program1. What will be the output of the program? A. Hello B. World C. Hello World D. WorldHello…
Strings – General Questions1. Which of the following function sets first n characters of a string to a given character? A.…
Pointers – Yes / No Questions1. Is there any difference between the following two statements? char *p=0; char *t=NULL; A. Yes B. No…
Pointers – True / False Questions1. Are the expression *ptr++ and ++*ptr are same? A. True B. False 2. Will the program compile?…
Pointers – Point Out Correct Statements1. Which of the following statements correctly declare a function that receives a pointer to pointer to a…
Pointers – Point Out Errors1. Point out the compile time error in the program given below. A. Error: invalid assignment for x…
Pointers – General Questions1. What is (void*)0? A. Representation of NULL pointer B. Representation of void pointer C. Error D. None…