Top 500+  C Language Interview Questions and Answers Pdf - 7

Question: 31

What is heap?

Heap is an area of memory from where is allocated at runtime using malloc() or calloc() functions.

Question: 32

What are formal parameters?

In using functions in a C program, formal parameters contain the values that were passed by the calling function.

The values are substituted in these formal parameters and used in whatever operations as indicated within the main body of the called function.

Question: 33

What is the difference between the =symbol and ==symbol?

The =symbol is often used in mathematical operations. It is used to assign a value to a given variable.

On the other hand, the ==symbol, also known as “equal to” or “equivalent to”, is relational operator that is used to compare two values.

Question: 34

What is the different file extensions involved when programming in C?

Source code in C is saved with .C file extension. Header files or library files have the .H file extension.

Every time a program source code is successfully compiled, it creates an .OBJ object file, and an executable .EXE file.

Question: 35

What are reserved words?

Reserved words are words that are part of the standard C language library.

This means that reserved words have special meaning and therefore cannot be used for purpose other than what it is originally intended for.

Examples of reserved words are int, void and return.

 

Related Questions