C Language Interview Questions and Answers for Experienced - 3

Question: 11

What is printf()?

printf() is an inbuilt function in C which is available in C library by default. This function is declared and related macros are defined in “stdio.h” header file.

printf() functions is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen.

Question: 12

What is a source code, object code and executable code?

Source code is a program written in a high level language, such as C.

Object code is a translated version of source code in machine language.

Executable code is a final version of a program, in machine language, that is executed on user’s command.

Question: 13

What is a File?

A File is a collection of related information that is permanently stored on the disk and allows us to access and alter that information whenever necessary.

Question: 14

What is a pointer?

Pointer is a variable which holds the address of another variable.

Question: 15

What are the uses of pointers?

Pointers are used to return more than one value to the function.

Pointers are more efficient in handling the data in arrays.

Pointers reduce the length and complexity of the program.

They increase the execution speed.

The pointerssaves data storage space in memory.

Related Questions