Correct Answer - Option 4 : #include < stdio.h >
The correct answer is option 4.
Explanation :
Option 1:
No error since assigning an integer value to a variable and value 17 is inside the range of integer i.e. -32768 to +32767.
Option 2:
No error since value 99 is ASCII value, hence whatever character has ASCII value 99 will be assigned to char c.
Option 3:
No error since float data type allows float typecasting.
Option 4:
- Generally, no error should occur in this header file but an error may occur in the following conditions :
- Moving this header file to another drive (excluding the drive where TURBO C is installed) may cause an error since the compiler will find the header file in the drive where TURBO C is installed & throw a compilation error.
- C program with single header file #include<stdio.h> can throw error "undefined reference to main() function".
Hence, the correct answer is "#include<stdio.h>".
NOTE:
Option 4 is the correct answer in official ISRO paper