Pointers and Arrays on C related Questions and Answers


Question :   Which of the following are generated from char pointer?
1. char *string = “Hello.”;
2.
char *string;scanf("%s", string);


3. char string[] = “Hello.”;
4. char *string = “Hello.”; and char string[] = “Hello.”;
Answer :   1 - char *string = “Hello.”;  


* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter