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 does typeof return in c?
string reverse using recursion
difference between Low, Middle, High Level languages in c ?
What does d mean?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What are the keywords in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is dynamic memory allocation?
c language interview questions & answer
What is const keyword in c?
What does the function toupper() do?
Is c is a high level language?
List some applications of c programming language?
What are the various types of control structures in programming?
What does %c mean in c?