1000+ C Basic Interview Questions for Freshers Pdf - 2

Question: 6

Which is called as the program entry point?

The main() function is a user defined one. The user has to define the main() function it provide necessary code. When a C program runs, the control is transferred to this function. This is called the program’s entry point.

Question: 7

What is the scope of a static variable and global variable?

The scope of the static variable is to the function in which it has been declared.

The scope of the global variable is to all the functions in the program.

Question: 8

What is block of memory?

The continuous memory location are said to be a block of memory. Each element occupies memory. The compiler allocates consecutive bytes, which is called as a block of memory.

Question: 9

Describe the feature of C language?

C language was designed originally as a language to be used with UNIX operating system, the C language is a general purpose language. It is an efficient, flexible and portable language. Portability refers to the case in which a unit of software written on one computer may be moved to another computer without any or little modification.

Question: 10

What is multidimensional array?

A multidimensional array has been considered as array of arrays in C language.

A two dimensional array has the following declaration

Int a[3][3];

The above declaration represents a 3 x 3 matrix. There are 9 elements and the compiler allocates 18 consecutive bytes to store the elements of the matrix.

Related Questions