What will be the output of the following C 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);
}
#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
Answer: Option C

Join The Discussion