a) char *ptr = “Hello!”;
b) char ptr[] = “Hello!”;
c) both char *ptr = “Hello!”; and char ptr[] = “Hello!”;
d) none of the mentioned
What type of initialization is needed for the segment “ptr[3] = ‘3’;” to work?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What type of initialization is needed for the segment “ptr[3] = ‘3’;” to work?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!