MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following is the correct output for the program given below?#include <stdio.h>void function1 (char*) ;int main ( ){ char ch[100] ; ch[0] = 'A' , ch[1] = 'B' ; ch[2] = 'C' , ch[3] = 'D' ; function1 ( &ch[0] ); return 0 ;}void function1 (char*ch);{ ch++ ; printf ("%c" , *ch) ; ch++ ; printf ("%c n" , *ch);} |
| A. | AB |
| B. | BC |
| C. | CD |
| D. | No output |
| Answer» C. CD | |