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; } |
|
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); |
|
35. | Can a variable be both const and volatile? |
---|---|
|
|
36. | Is it possible to place a return statement anywhere in 'C' program? |
---|---|
Yes .The return statement can occur anywhere. | |