Character Array MCQ 12 : String
Character Array MCQ 12 : Random Address
What is the Output of the Following Program ?
#include<stdio.h> #include<string.h> int main() { char str[] = "Programming"; printf("%s ",&str[2]); printf("%s ",str); printf("%s ",&str); return(0); }
Options :
- ogramming Programming Programming
- ogramming Programming < Garbage Value >
- Programming ogramming Programming
- Program Compiled with Syntax Errors
Output:
Switch to String MCQ Home : Click Here
Note: |
|