What Is Array? Explain 1D Array.

1 month ago
C Programming

An array is a collection of similar data types stored in contiguous memory allocation. The array always started with 0 and the array's last element is n-1. The array started address called lower bounded. And the last element is called the upper bound.

1 Dimensional Array: –

Declaration & Initialization of 1D array

Syntax – <Datatypes>arrayname[lenth];

int age[8] = {10,20,30,40,50,60,70,80}

Rusma Khadka
Dec 29, 2022
More related questions

Questions Bank

View all Questions

Top