C Fundamental Test 26) In a library of C programming language, which of the following header file is used for performing mathematical operations?
The correct option is (c). Explanation: "math.h" is a header file used for performing mathematical operation in a library of C programming language. 7) What are the various types of real data type in C language?
The correct option is (d). Explanation: Floating data type is known as real data type. There are three types of floating data type:
8) The statement used for printing \n on the screen is:
The correct option is (c). Explanation: In C language,"\n" is the escape sequence for printing a new line character. For a statement printf("\\n"); statement , "\\" symbol will be printed as "\" and "n" is known as a common symbol. 9) Which of the following are declarations?
Options are given below:
The correct option is (b). Explanation: double pow(double, double); instruction is a function prototype declaration extern int x; instruction is an external variable declaration. Therefore 1 and 3 are declarations and 2 is definition. 10) Which header file is used to define input/output functions, macros and prototypes?
The correct option is (d). Explanation: Header file stdio.h is used for defining the macros, variable and various functions for performing input and output operation in C-language. |