C Languages Interview Questions

33. What is the use of "goto" statement?
  goto statement is used to transfer the normal flow of a program to the specified in the program. Below is the syntax for goto statement in C.
{
……..
goto label;
……
…….
LABEL :
statements;
}
 
Your Name Your Email-ID
Your Answer
34. 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
35. Can a variable be both const and volatile?
 
  • Yes. The const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside this code.
  • If a variable is both const and volatile, the two modifiers can appear in either order.
 
Your Name Your Email-ID
Your Answer
36. Is it possible to place a return statement anywhere in 'C' program?
  Yes .The return statement can occur anywhere.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 9 of 15