What is the difference between an if statement and a switch statement?
A. The if is used in functions, the switch is used in main.
B. They are identical and any place you can use an if, you can use a switch.
C. The if statement allows for complicated condition checking, the switch does not.
D. The switch statement allows for complicated condition checking, the if does not.
C
You might also like to view...
Explain why memory management in pure segmentation systems is quite similar to memory management in variable-partition multiprogramming systems.
What will be an ideal response?
____________________ is a technique used to gain unauthorized access to computers, wherein the intruder sends messages whose IP addresses indicate to the recipient that the messages are coming from a trusted host.
Fill in the blank(s) with the appropriate word(s).
Sum, Count, and Avg are all examples of aggregate functions
Indicate whether the statement is true or false
The intersection of a column and a row in a table is called a(n) ________
Fill in the blank(s) with correct word