The following program stores two strings in two arrays, swaps them, and displays their new content. Is there any error? Please explain.
#include <stdio.h>
int main()
{
char temp[100];
char str1[100] = "Let see";
char str2[100] = "Is everything OK?";
temp = str1;
str1 = str2;
str2 = temp;
printf("%s %s", str1, str2);
return 0;
}
References: C From Theory