String / Character Array MCQ 1 : String Assigned to Character Pointer
Predict the Output of the Following Program ?
#include<stdio.h> void main() { char *str="Pritesh"; printf("%s",str); }
- Error : Declaration not Allowed
- Pritesh
- Illegal Pointer Initialization
- None Of these
Switch to String MCQ Home : Click Here
How and Why ?
- String Can be Initialized to Character Pointer
- Here Base Address of the String is Stored in Pointer Field
- For More Details : Click Here [String Initialization Techniques ]
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email