C Programming INTERVIEW QUESTIONS
Languages
9. | What is the difference between auto variables and static variable in C? |
---|---|
|
10. | What is the syntax for ternary operators in C? |
---|---|
Ternary operator is same as if else control statement in C. Syntax: (Condition? true_value: false_vaue); |
11. | What is a syntax error? |
---|---|
|
12. | What are runtime errors? |
---|---|
These are errors that occur which the program is being executed. One common instance wherein run time errors can happen is when you are trying to divide a number by zero. When a run time errors occur, program execution will pause, showing which program line caused the error. |