What will be the output of the following C code? [code]#include <assert.h> #include <stdio.h> void main() { int n=11; char

Danh Trịnh

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

Tìm kiếm

Back
Top