write a program to print the one dimensional array.



write a program to print the one dimensional array...

Answer / 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

More C Interview Questions

How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.

0 Answers  


Reverse a string word by word??

9 Answers  


What is d'n in c?

0 Answers  


What is a macro, and explain how do you use it?

0 Answers  


how to find your architecture is LittleEndian or BigEndian?

1 Answers  






convert 12345 to 54321 withoutusing strig

5 Answers  


What is a double c?

0 Answers  


Tell us something about keyword 'auto'.

0 Answers  


what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


How can I open a file so that other programs can update it at the same time?

0 Answers  


write a programme to convert temperature from farenheit to celcius?

4 Answers   IBM,


What are different types of variables in c?

0 Answers  


Categories