char *string1[ ]; char *string2 = "Second"; string1 = string2;
char *string1[ ]; char *string2 = "Second"; string1 = string2;
When you say "anything wrong", did you try to compile it?
The problem is, string1 is an array without a size, so your assignment at the end is wrong.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.