1000+ C Interview Questions and Answers 2023 - 2024 Pdf - 1

Question: 1

What is function prototype?

A function declaration may be called as a function prototype or a function model. The function prototype has four components.

Name of the function

Return value type

Number of parameters

Type of each parameter.

Question: 2

Define a simple C program?

C programs can be very small. ā€˜C’ programs are made up of functions. A program cannot be written without a function. A function may be predefined or user defined.

Question: 3

What are the types of characters that a control string can have?

The control string of printf() function can take three types of characters.

Ordinary characters

Formatting characters

Escape sequence characters.

Question: 4

Mention the similarities of an array and a pointer?

Arrays and pointers are closely related and

A pointer can be simulated as if it were declared as an array.

Question: 5

What is actual parameters?

Actual parameters are the parameters defined in the calling function and they have the actual values to be passed to the called function.

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES