C Programming Interview Questions and Answers - 2

Question: 6

Where is the function declared as static stored in memory?

Yes static keyword would not affect where the function gets stored, even if it is static a function will always be stored in stack.

But it hides the function from being used in other files other than in which it is declared.

Question: 7

What is FIFO?

In C programming, there is a data structure known as queue. In this structure, data is stored and accessed using FIFO format, or First In First Out.

A queue represents a line wherein the first data that was stored will be the first one that is accessible as well.

Question: 8

What is a program flowchart?

A flowchart provides a visual representation of the step by step procedure towards solving a given problem. Flowcharts are made of symbols, with each symbol in the form of different shapes. Each shape may represent a particular entity within the entire program structure, such as a process, a condition, or even an input/output phase.

Question: 9

What is the difference between pre decrement and post decrement operator?

Pre decrement operator is used to decrement variable value by 1 before assigning the value to the variable.

Post decrement operator is used to decrement variable value by 1 after assigning the value to the variable.

Question: 10

 What is a nested loop?

A nested loop is a loop that runs within another loop. Put it in another sense, you have an inner loop that is inside an outer loop.

In this scenario, the inner loop performed a number of times as specified by the outer loop.

For each turn on the outer loop, the inner loop is first performed.

Related Questions