C Programming and Technical

Q. When is a switch statement better than multiple if statements?

A. A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type.

Read Solution (Total 0)

C Other Question

Q. What is an argument? Differentiate between formal arguments and
actual arguments?

A. An argument is an entity used to pass the data from calling function to the called function. Formal arguments are the arguments available in
the function definition. They are preceded by their own data types.
Actual arguments are available in the function call
Q. Differentiate between a linker and linkage?

A. A linker converts an object code into an executable code by linking together the necessary build in functions. The form and place of declaration where the variable is declared in a program determine the linkage of variable.