1000+ C Programming Coding Questions and Answers - 2

Question: 6

Which is the data type associated with string literal?

The data type associated with a string literal is char * (character pointer).

Question: 7

What is syntax?

The set of rules and regulations followed by a particular language is called syntax.

Question: 8

What is formal parameters?

Formal parameters are the parameters defined in the called function and they receive the values of the actual parameters when the function is invoked.

Question: 9

What are fundamental data types?

The fundamental data types are int, float and char. They are also called as pre-defined primitive types associated with the C compiler. The C compiler knows about these types and the operations that can be performed on the values of these keywords.

Question: 10

What is ternary operator?

C has one ternary operator, which is a conditional operator. The symbol used for this operator is ?: and it has three operands.

The syntax of the conditional operator is

Conditional expression ? expression 1 : expression 2 :

If the conditional expression is true, expression 1 is evaluated. If the conditional expression is false, expression 2 is evaluated.

Related Questions