Here\'s a program I wrote to copy a string constant.
When the program is run it crashes. Why is this happening ?
#include char *alph
You can directly do the below code:
char *alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char *l = alpha;
If your code was below:
const char *alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const char *l = alpha;
:)