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

what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1279


what is stack , heap ,code segment,and data segment

2699


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1246


How old is c programming language?

1012


How can I invoke another program or command and trap its output?

1097


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

1022


What are the types of unary operators?

1191


What is the benefit of using const for declaring constants?

1049


What is a ternary operator in c?

1125


‎How to define structures? · ‎

1089


How can you pass an array to a function by value?

1125


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2390


Why functions are used in c?

1140


What is array in c with example?

1270


What are the rules for the identifier?

1169