What is the output of the following C program?
#include
int main(void) {
char s1[ ] = “Hello";
char s2[ ] = "World!";
s1 =s2;
printf("%s", s1);
}
1
“HelloWorld!”
2
Compilation error
3
“Hello”
4
“World!”
5
Question Not Attempted
What is the output of the following C program?
#include
int main(void) {
char s1[ ] = “Hello";
char s2[ ] = "World!";
s1 =s2;
printf("%s", s1);
}