1.  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

2.  The following program
main ()
{ int a = 4;
change { a };
printf (‘’%d’’, a);
}
change (a)
int a;
{
printf(‘’%d’’, ++a);
}
outputs


55
45
54
44


Answer

 Option

change (a) , prints 5 but the value of 'a' in main ( ) is still 4. So main( ) will print 4.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  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

4.  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

5.  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