C Programming :: Basic Concepts

Home > C Programming > Basic Concepts > General Questions

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

1 / 4

 The conditional compilation

AIt is taken care of by the compiler

BIt is setting the compiler option conditionally

CIt is compiling a program based on a condition

Dnone of above

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

2 / 4

 In the command scanf, h is used for

AShort int

Bint

Cshort unit

DNone of these

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

3 / 4

 what is the correct prototype of printf function ?

Aprintf(char *p,...);

Bprintf(const *char *p,...);

Cprintf(const char *p,...);

Dprintf(const *char p,...);

 View Answer |  Discuss in Forum |  Workspace | Asked In Global Edge |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
0
Solv. Corr.
0
Solv. In. Corr.
0
Attempted
0 M:0 S
Avg. Time

4 / 4

 What is the output of the following 'C' program ?

#include
int main()
{
printf( printf ("world") );

}

Aprints world

Bprints printf ("world")

Cprints nothing

Dcompiler error

 View Answer |  Discuss in Forum |  Workspace | Asked In Global Edge |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace