C Language MCQ’S | Declarations and Initializations 5

Exercise :: Declarations and Initializations – General Questions
Declarations and Initializations – General Questions
Declarations and Initializations – Find Output of Program
Declarations and Initializations – Point Out Errors
Declarations and Initializations – Point Out Correct Statements
Declarations and Initializations – True / False Questions
Declarations and Initializations – Yes / No Questions

21.
Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.

A. Yes
B. No

22.
Range of double is -1.7e-38 to 1.7e+38 (in 16 bit platform – Turbo C under DOS)

A. True
B. False

23.
Size of short integer and long integer would vary from one platform to another.

A. True
B. False

24.
Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?

A. Yes
B. No

25.
Is there any difference in the following declarations?
int myfun(int arr[]);
int myfun(arr[20]);

A. Yes
B. No

Visitor Counter

0056743