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

Question: 6

What are header files?

Header files are file with extension h.

These files contain declarations of library functions and predefined constants and macros.

Question: 7

What are Keywords?

Keywords are certain reserved words that have standard and pre-defined meaning in C.

These keywords can be used only for their intended purpose.

Question: 8

What are the different data types available in C?

There are four basic data types available in C,

int,

float,

char and

double

Question: 9

What is the difference between C and Java?

C is structure/procedure oriented programming language whereas Java is object oriented programming language.

C language program design is top down approach whereas Java is using bottom up approach.

C language is middle level language whereas Java is high level language.

Exception handling is not present in C programming language. Whereas exception handling is present in Java.

Polymorphisms, virtual function inheritance, operator overloading, namespace concepts are not available in C programming language. Whereas Java supports all these concepts and features.

Question: 10

Basically, what does the header files contain?

The header file contains declarations of library functions (prototypes of library functions) and useful enumerations and macros for the convenience of the programmers.

Related Questions