हिंदी

The following statement : int code[ ]= {25, 37, 38, 42); - Computer Applications

Advertisements
Advertisements

प्रश्न

The following statement : int code[ ]= {25, 37, 38, 42);

विकल्प

  • Assigns 37 to code[1]

  • Assigns 25 to code[1]

  • Assigns 38 to code[3]

  • Assigns 42 to code[0]

MCQ

उत्तर

Assigns 37 to code[1]

Explanation:

The statement int code[ ]= {25, 37, 38, 42}; assigns 37 to code[1] as the array index begins from 0. So the second value (37) will be assigned to code[1].

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [पृष्ठ २३८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q I. 7. | पृष्ठ २३८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×