1.  void can be used


`as a data-type of a function that returns nothing to its calling environment
inside the brackets of a function that does not need any argument
in an expression
both (a) & (b)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  function can return enumeration constants in C ?


true
false
Depends on the compiler
Depends on the standard


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  function can return structure in c ?


true
false
Depends on the compiler
Depends on the standard


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  The function scanf() returns


The actual values read for each argument
1
0.
The number of successful read input values


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  The following program
main()
{
inc();inc();inc();
inc()
{
static int x;
printf(''%d'',++x);
}


prints 012
prints 123
prints 3 consecutive, but unpredictable numbers
print 111


Answer

 Option

By default x will be initialized to 0. Since its storage class is static, it presents its exit value ( and forbids reinitialization on re-entry ). So, 123 will be printed.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report