Examveda

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

A. output: 12 output:

B. output: 12

C. output: 12
assertion error

D. error

Answer: Option C


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions