Home » C Programming » Pointers » Question
  1. Which of the following declaration is illegal?
    1. int size = 5;
      int num[size] = {11, 12, 13, 14, 15};
    2.  int p = 10, q = 11, r = 12;
      int num[4] = {p, q, r, s};
    3. int size = 10;
      int num[size];
    4. All of above
    5. None of these
Correct Option: A

int size = 5;
int num[size] = {11, 12, 13, 14, 15};



Your comments will be displayed only after manual approval.