Character Array MCQ 13 : Printing Initialized Array
Character Array Multiple Choice Question 13 : Printing Initialized Array
What is the Output of the Following Program ?
#include<stdio.h> #include<string.h> int main() { char str[2] = "A"; printf("n%c",&str[0]); printf("t%s",str); return(0); }
Options :
- A Garbage
- Garbage A
- Garbage Garbage
- A A
Output:
Switch to String MCQ Home : Click Here
Note: |
|