English

Differentiate between the following: Char a[5] and int a[5] - Computer Applications

Advertisements
Advertisements

Question

Differentiate between the following:

Char a[5] and int a[5] 

Distinguish Between

Solution

Char a[5]  int a[5]
The variable an is a length 5 subscripted variable (array). It's limited to storing characters. Variable and is subscripted (array) to length 5 (inta[5]). It is limited to storing integers.
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [Page 240]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q VI. 2. | Page 240
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×