FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C Programming INTERVIEW QUESTIONS

Languages
9. What is the difference between auto variables and static variable in C?
 
  • Both auto and static variables are local variables.
  • Static variables can retain the value of the variable between different function calls.
  • But, scope of auto variable is within the function only. It can't retain the value of the variable between different function calls.
Your Name Your Email-ID
Your Answer
 
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);
Your Name Your Email-ID
Your Answer
 
 
11. What is a syntax error?
 
  • Syntax errors are associated with mistakes in the use of a programming language.
  • It may be a command that was misspelled or a command that must was entered in lowercase mode but was instead entered with an upper case character.
  • A misplaced symbol or lack of symbol, somewhere within a line of code can also lead to syntax error.
Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer