Home » C Programming » Pointers » Question
  1. What type of initialization is needed for the segment “p[3] = ‘3’;” to work?
    1. int *p= "Interview",
    2. char *p = “Interview!”;
    3. char p[] = “Interview!”;
    4. both char *p = “Interview!”; and char p[] = “Interview!”;
    5. None of these
Correct Option: C

char p[] = “Interview!”;



Your comments will be displayed only after manual approval.