1. What are C identifiers?

These are names given to various programming element such as variables, function, arrays.It is a combination of letter, digit and underscore.It should begin with letter. Backspace is not allowed.

2. What is logical error?

Logical error are caused by an incorrect algorithm or by a statement mistypes in such a way
► That it doesn't violet syntax of language.
► Difficult to find.

3. Can you please explain the difference between syntax vs logical error?

Syntax Error
► These involves validation of syntax of language.
► Compiler prints diagnostic message.
Logical Error
Logical error are caused by an incorrect algorithm or by a statement
► Mistyped in such a way that it doesn't violet syntax of language.
► Difficult to find.

4. Can we use any name in place of argv and argc as command line arguments?

yes we can use any user defined name in place of argc and argv.

5. What is recursion?

A recursion function is one which calls itself either directly or indirectly it must halt at a definite point to avoid infinite recursion.

6. What is actual argument?

Actual arguments are available in the function call. These arguments are given as constants or variables or expressions to pass the values to the function.

7. What is formal argument?

Formal arguments are the arguments available in the function definition. They are preceded by their own data type.

8. Can main () be called recursively?

Yes any function including main () can be called recursively.

10. Do you know the use of "auto" keyword?

When a certain variable is declared with the keyword 'auto' and initialized to a certain value, then within the scope of the variable, it is reinitialized upon being called repeatedly.

Download Interview PDF