[Solved] Which of the following are valid and what is the dimension of a and b? [duplicate]


first you have typo instead of Int it should be int.

Answer :- if we want specify dimension before the variable, that facility is applicable only for first variable in a declaration. If we are trying to apply for remaining variables, we will get compile time error.

1. a=1, b=1;
2. a=2, b=1;
3. a=2, b=2;
4. a=2, b=2;
5. a=2, b=3;
6. Compile time error.

7

solved Which of the following are valid and what is the dimension of a and b? [duplicate]