The ________ statement in C is used to execute a block of code only when a specific condition is true.
- For Loop
- While Loop
- If Statement
- Do-While Loop
The correct option is (c) If Statement. In C, the 'if' statement is used to execute a block of code only when a specific condition is true. If the condition is false, the code inside the 'if' block is skipped.
Loading...
Related Quiz
- For efficient memory utilization in dynamic arrays, it is important to release the allocated memory using the function _________.
- To split a string into tokens in C, the function ________ is used.
- The keyword ________ is used to define a structure in C.
- How does C++ resolve calls to overloaded functions?
- A ________ pointer is a pointer that still points to a memory location that has been deallocated.