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 a program to print the one dimensional array.

Answer Posted / manish soni

#include<stdio.h>
#include<conio.h>
void main()
{
int
printf("enter how many no");
scanf("%d",&n);
//arrary input;
for(i=0;i<n;i++)
{
printf("Enter elements %d ",i+1);
scanf("%d",&a[i]);
}
//array output;
for(i=0;i<n;i++)
printf("output at position [%d]is=%d\n",i+1,a[i]);
getch();
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getch c?

1306


How to explain the final year project as a fresher please answer with sample project

978


How to delete a node from linked list w/o using collectons?

2786


Why is struct padding needed?

1093


How are portions of a program disabled in demo versions?

1299


Why void main is used in c?

1056


What will be your course of action for a push operation?

1113


Difference between strcpy() and memcpy() function?

1158


What are dangling pointers? How are dangling pointers different from memory leaks?

1327


Where static variables are stored in c?

1113


Is c easy to learn?

994


How can I delete a file?

1071


Should I learn data structures in c or python?

1030


What math functions are available for integers? For floating point?

1141


Can we use visual studio for c?

1103