Home » C Programming » Pointers » Question
  1. Which of the following declaration are illegal?
    1. int num[5][6] = {{10, 20, 30}, {21, 13, 41, 15}};
    2. int num[][] = {{10, 20, 30}, {12, 13, 41, 51}};
    3. int *num[] = {{11, 21, 13}, {20, 31, 40, 15}};
    4. All of above
    5. None of these
Correct Option: B

int num[][] = {{10, 20, 30}, {12, 13, 41, 51}};



Your comments will be displayed only after manual approval.