C Language Interview Questions and Answers for Experienced - 2

Question: 6

What is IDE?

IDE is nothing but Integrated Development Environment.

IDE is a tool that provides user interface with compilers to create, compile and execute C programs.

Question: 7

What are the different types of address in a program?

There are two types of addresses: absolute addresses and relative addresses.

Absolute addresses are those addresses that are fixed and never changes such as addresses of I/O and other ports, etc.

On the other hand, relative addresses are those addresses that depend on the starting address of the object code such as addresses of instructions and operands (variables and constants declared and defined in a function). Whenever, the starting address of the object code is changed, these addresses also need to be changed.

Question: 8

What is the difference between array and string in C?

Array can hold any of the data types. But, string can hold only char data type.

Array size must be a constant value. So, array size can’t be changed once declared. But, string size can be modified using char pointer.

Question: 9

What are the key features or characteristics of C languages?

The characteristics of C language are:

Reliability

Portability

Flexibility

Interactivity

Modularity

Efficiency and Effectiveness

Question: 10

What is scanf()?

scanf() function is an inbuilt library 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.

scanf() function is used to read character, string, numeric data from keyboard.

Related Questions