8 votes 8 votes Which of the following is an illegal array definition? Type COLONGE : (LIME, PINE, MUSK, MENTHOL); var a : array [COLONGE] of REAL; var a : array [REAL] of REAL; var a : array [‘A’…’Z’] of REAL; var a : array [BOOLEAN] of REAL; Programming in C isro2008 array + – अनुराग पाण्डेय asked Oct 4, 2015 अनुराग पाण्डेय 9.2k views answer comment Share Follow See all 12 Comments See all 12 12 Comments reply Show 9 previous comments asu commented Jun 13, 2016 reply Follow Share what u want to ask 0 votes 0 votes asu commented Jun 19, 2016 reply Follow Share why downvotes here..any reason ? 0 votes 0 votes JashanArora commented Dec 3, 2019 reply Follow Share The size of an array should be fixed on declaration, because arrays reside inside the "static and global variables" field in the RunTime Environment. Option A: Size 4. Option B: Size uncountable. Option C: Size 26. Option D: Size 2. 1 votes 1 votes Please log in or register to add a comment.
Best answer 17 votes 17 votes Answer is b) Array index must be integers. Enumerators, characters and boolean can be used in place of an integer but not real. Kapil answered Jun 13, 2016 selected Jun 13, 2016 by Arjun Kapil comment Share Follow See all 3 Comments See all 3 3 Comments reply Shubham Yadav commented Apr 18, 2018 reply Follow Share what do u mean with enumerators they can also be infinite set , pls correct me ???\ 0 votes 0 votes Raju Kalagoni commented Dec 24, 2019 reply Follow Share Enumerators are nothing but constants just like keyword enum in C and C++. 0 votes 0 votes satyaAchar commented Jan 17 reply Follow Share Shubham Yadav by default enum value initialize to 0….. for exam enum month {jan,feb,mar,apr…..} here,jan=0,feb=1,mar=2….. so, in array indexing for better understand we use emum... 0 votes 0 votes Please log in or register to add a comment.