Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
#include<string.h>
void solve() {
char s[] = "Hello";
printf("%s ", s);
char t[40];
strcpy(t, s);
printf("%s", t);
}
int main() {
solve();
return 0;
}
β
Correct Answer: (A)
Hello Hello