Danh Trịnh
New member
What will be the output of the following C code?
A. output: 11
B. error message
C.
output: 11
output: program
D. output: program
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);
}
B. error message
C.
output: 11
output: program
D. output: program