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

Question: 21

What is conversion specification?

The conversion specifications are used to accept or display the data using the INPUT/OUTPUT statements.

Question: 22

What is modular programming?

It is a programming technique that produces relatively small, easily understandable computer modules.

A complex or large program is broken into number of logically self contained modules.

These modules may be written and tested separately by number of programmers.

Finally, the modules can be then put together to form the complete program/system.

Question: 23

What is the difference between declaration and definition of a variable?

Declaration only identifies the data type of a variable whereas definition causes the space to be reserved for the variable.

Thus, declaration in a place where the nature of the variable is stated but no storage is allocated whereas definition is the place where the variable is created or assigned storage.

Question: 24

Can we increase the size of the dynamically allocated array?

Yes. This can be done using the realloc() function.

Question: 25

What are the different ways to represent strings?

Strings can be represented using array of characters and a linked list.

Related Questions