Pointers – Yes / No Questions


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

1. Is there any difference between the following two statements?
char *p=0;
char *t=NULL;

A. Yes
B. No

Correct Answer: B. No
Advertisement

2. Is this a correct way for NULL pointer assignment?
int i=0;
char *q=(char*)i;

A. Yes
B. No

Correct Answer: B. No
Advertisement

3. Is the NULL pointer same as an uninitialised pointer?

A. Yes
B. No

Correct Answer: B. No
Advertisement

4. Will the program compile in Turbo C?

Screenshot 1

A. Yes
B. No

Correct Answer: B. No
Advertisement

5. Will the following program give any warning on compilation in TurboC (under DOS)?

Screenshot 2

A. Yes
B. No

Correct Answer: B. No
Advertisement

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

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

Leave A Comment?