Computer Science, asked by gideonsam2000, 1 year ago

34. Which of the following array declarations are invalid? State reasons for invalidity
i) float a[+40]; ii) int num[0-10]; iii) double [50]; iv) amount [20] of float;

Answers

Answered by ishaani42
1

I think int num[ 0-10]

Because the array elements become negative , which causes out of bound exception

HOPE IT HELPS YOU

Similar questions