- dos.h
- math.h
- stdio.h
Explanation:
"math.h" is a header file employed to execute mathematical functions within the C programming language's library.
7) What are the various types of real data type in C language?
- long double, short int
- float, long double
- short int, double, long int, float
- float, double, long double
Explanation:
Floating data type is known as real data type.
There are three types of floating data type:
- float with storage size of 4 byte
- long double with storage size of 10 byte
- double with storage size of 8 byte
- printf("");
- printf('\n');
- printf("\\n");
- printf("n\");
8) The statement used for printing \n on the screen is:
Explanation:
In the C programming language, the "\n" escape sequence is utilized to represent a new line character when printing text. When the statement printf("\\n"); is executed, the backslash "\" symbol will be printed as "\" and the letter "n" will be displayed as a regular character.
9) Which of the following are declarations?
- float square (float x){?}
- double pow(double, double);
- extern int x;
Options available include:
- Alternatives 1 and 3
- Choices 1 and 2
Explanation:
The declaration "double pow(double, double);" represents a function prototype for the pow function.
The instruction "extern int x;" declares a variable x as external.
Hence, number 1 and 3 represent declarations, while 2 signifies a definition.
10) Which header file is used to define input/output functions, macros and prototypes?
- memory.h
- math.h
- dos.h
- stdio.h
Explanation:
The header file stdio.h is utilized to declare macros, variables, and a variety of functions for executing input and output tasks in the C programming language.