Program 1:
#include <iostream.h>

int main()
{
char *nz;
nz="hello";

cout << nz << "\n";
return 0;
}

Program 2:
#include <iostream.h>

int main()
{
char nz[6];
nz="hello";

cout << nz << "\n";
return 0;
}

Isnt that,they are the same?howcome the first one run without any error,but the second one got an error?