0% found this document useful (0 votes)
24 views2 pages

Array

Uploaded by

aadi1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Array

Uploaded by

aadi1988
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Array

Similar Type of Value

int arr[5];//define
arr[0]=4;
arr[1]=45;
arr[2]=7;
arr[3]=9;
arr[4]=55;

int arr1[]={1,23,44,5,32}; //define & Initialize


#include<conio.h>
#inclide<stdio.h>
void main()
{

int arr[10];
clrscr();
printf(“Enter the elements into array”);
for(int i=0;i<10;i++)
{
scanf(“%d”,&arr[i]);
}
printf(“Element of the arrays are:”)
for(int i=0;i<10;i++)
{
printf(“%d”,arr[i]);
}
getch();
}

0 1 2 3 4 5 6 7 8 9
12 33 56 77 88 99 8 66 44 1

You might also like