Answer (Choose 1 answer)
OF
Given the program:
#include <stdio.h>#include <string.h>
void main(){char str[50];
strcpy(str, "Hello world");*(str+7) = '\0';printf("%s",str);
}
What is printed?
A. Hello \Orld
B. Hello world
C. Hello w
D. Hello 10
E. Other
F. Error
Exit (31