char ptr1[] = "Hello World"; char *ptr2 = malloc( 5 ); ptr2 = ptr1; What is wrong with the above code (assuming the call to malloc does not fail)?
Reveal answer
Fill a bubble to check yourself
char ptr1[] = "Hello World"; char *ptr2 = malloc( 5 ); ptr2 = ptr1; What is wrong with the above code (assuming the call to malloc does not fail)?