C Programming and Technical

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

Read Solution (Total 0)

C Other Question

Q. What is an lvalue?

A. An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is located on the right side of an assignment statement. Each assignment statement must have an lvalue and an rvalue. The lvalue expression must reference a storable variable in
memory. It cannot be a constant
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.