Embedded C Interview Questions and Answers Pdf - 1

Question: 1

What are all the sections that a C program may/must have?

There are many sections in a C program structure. They are

Documentation section

Link section

Definition section

Global declaration section

Function prototype declaration section

Main function

User defined function section

main()  function section is an important section in a C program as program execution starts from main() function only in C language. A C program may not have all other sections except main() function.

Question: 2

What are the different types of modifiers in C?

There are five modifiers available in C language. They are,

short

long

signed

unsigned

long long

Question: 3

What is constant in C?

Constants refer to fixed values. They are also called as literals.

C constants are also like normal variables.

But, only difference is, constant values can’t be modified by the program once they are defined.

Constants may be belonging to any of the data type.

Question: 4

What are the types of constants in C?

There are many types of constants in C Programming are:

Integer constants

Real or floating point constants

Octal and hexadecimal constants

Character constants

String constants

Backslash character constants

Question: 5

What is meant by preprocessor?

Preprocessor is the program, that process our source program before the compilation.

Related Questions