Embedded C Interview Questions and Answers Pdf - 2

Question: 6

What are functions?

A function is a program, which is being used to carry out a small task.

Question: 7

What are register variable?

The register variables behave like auto variables. If a variable is declared with register storage class, its value is placed in one of the computer’s high speed hardware registers. If the compiler does not find sufficient registers to use, it may ignore register declarations. The register variables are used to speed up operations, by reducing memory access time.

Question: 8

What are structures?

Structures are used to create user defined types.

Structures are commonly used to define records to be stored in files. A structure is a collection of elements of different data types.

Question: 9

What are the types of operators used in C?

There are three types of operators in C.

Unary operator * ++ --

Binary operator +, -

Ternary operator ? :

Question: 10

What are tokens?

A token is a source program text that the compiler does not break down into component elements.

Related Questions