Array declaration in C is the process of defining an array, specifying its data type and size.
data_type array_name[array_size];
Type | Declaration |
---|---|
Integer Array | int intArray[5]; |
Character Array | char charArray[5]; |
Float Array | float floatArray[5]; |
Double Array | double doubleArray[5]; |
Long Array | long longArray[5]; |
Short Array | short shortArray[5]; |
Unsigned Integer Array | unsigned int unsignedIntArray[5]; |
Unsigned Long Array | unsigned long unsignedLongArray[5]; |
Unsigned Short Array | unsigned short unsignedShortArray[5]; |
Boolean Array (Using int) | int boolArray[2]; |