Strings – Yes / No Questions

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

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?