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
What is #line used for?
How can I write functions that take a variable number of arguments?
What are c identifiers?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
can any one tel me wt is the question pattern for NIC exam
What is the best style for code layout in c?
What is c definition?
What is the stack in c?
How can I do graphics in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is derived datatype in c?
How can I open files mentioned on the command line, and parse option flags?
What are the different properties of variable number of arguments?
How to write a multi-statement macro?