adplus-dvertising
frame-decoration

Question

What is the output of the following 'C' program?
 main 
        {
 extern int i;
 i = 20;
 print("%d",size of (i));
          }

a.

2

b.

8

c.

Would vary compiler to cimpiler

d.

Error

Posted under C Programming

Answer: (d).Error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following 'C' program?

Similar Questions

Discover Related MCQs

Q. The value of an automatic variable that is declared but not initialized will be

Q. Choose the correct answer

Q. Which of the following comments regarding the reading of a string, using scanf(with optional) and get is true?

Q. If integer needs two bytes of storage, then maximum value of a signed interger is

Q. The minimum number of temporary variables needed to swap the contents of two variables is

Q. If s and b are integers then  purpose of the following program fragment is to 

   b = s + b ;
   s = b - s ;
   b = b - s ;

Q. If integer needs two bytes of storage, then maximum value of a signed integer is

Q. printf ( "%d" , printf ( "tim" ) ):

Q. Consider the statements:

putchar ( getchar ( ));
putchar(getchar( ));

If
a
b
is the input, the output will be

Q. Literal means

Q. Which of the following are true regardless of the implementation ?

Q. Choose the correct statements

Q. Choose the correct statements

Q. Choose the correct statements

Q. Which of the following comments about wide characters is/are true ?

Q. Which of the following is true of external variables?

Q. Choose the correct statements

Q. The declaration 

  int x : 4;

means

Q. As soon as a pointer variable is freed, its value

Q. Choose the correct statements