Home » C Programming » Pointers » Question
  1. Which of the following are generated from char pointer?
    1. char *string;
      scanf("%s", string);
    2. char *string = “Hey”; and char string[] = “Hey”;
    3. char *string = “Hey”;
    4. char string[] = “Hey”;
    5. None of these
Correct Option: C

char *string = “Hey”;



Your comments will be displayed only after manual approval.