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

How can I list all of the predefined identifiers?

940


Why do some versions of toupper act strangely if given an upper-case letter?

1051


Explain is it better to bitshift a value than to multiply by 2?

1154


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1085


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2021


What is the difference between far and near in c?

1011


while initialization of array why we use a[][2] why not a[2][]...?

2322


Explain how do you override a defined macro?

1031


What are different types of variables in c?

1021


How can I sort more data than will fit in memory?

1057


Here is a neat trick for checking whether two strings are equal

983


Why c is called procedure oriented language?

1007


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1910


What is .obj file in c?

1034


What is an array? What the different types of arrays in c?

1123