Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write program on arrays

Answer Posted / rina

#include<stdio.h>
#include<conio.h>
void main()
{
int i,a[5],n;
clrscr();
printf("\nenter the no.");
scanf("%d",&n);
for(i=1;i<=5;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=5;i++)
{
printf("%d",a[i]);
}
getch();
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use null pointer?

1079


What is a nested loop?

1144


What is use of bit field?

1309


Why do we write return 0 in c?

1081


What is auto keyword in c?

1216


What is the use of bitwise operator?

1139


What is a pointer in c plus plus?

1323


What is cohesion in c?

987


main() { printf("hello"); fork(); }

1209


Is main an identifier in c?

1153


Explain the properties of union.

1094


Is array a primitive data type in c?

1085


What does 3 mean in texting?

1119


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1961


What are the usage of pointer in c?

1207