1. Will the program compile successfully?

Will the program compile successfully

A. Yes
B. No


Correct Answer: B. No

2. For the following statements will arr[3] and ptr[3] fetch the same character?
char arr[] = “GkFeed”;
char *ptr = “GkFeed”;

A. Yes
B. No


Correct Answer: B. No

3. Is there any difference between the two statements?
char *ch = “GkFeed”;
char ch[] = “GkFeed”;

A. Yes
B. No


Correct Answer: A. Yes

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    three + one =