Vidyalelo
C Programming · Q120

Standard Library Functions

Programming · C Programming · question 120

Q120

What will be the output of the following C code? #include #include void main() int n=12; char str[50]=""; assert(n >= 10); printf(" output: %d ", n); assert(str != NULL); printf("output: %s ", str);

A.
output: 12 output:
B.
output: 12
C.
output: 12
assertion error
Answer
D.
error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board