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

In how much time you will write this c program? Prime nos from 1 to 1000

2 Answers   TCS,


What is function prototype in c language?

0 Answers  


What is the basic structure of c?

0 Answers  


What is a Genralised LInked List?? Please give a detailed explation of it..

1 Answers  


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  






what is bitwise operator?

1 Answers   IBM,


How was c created?

0 Answers  


Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 Answers  


What is a char c?

0 Answers  


Is there anything like an ifdef for typedefs?

0 Answers  


2. What does static variable mean?

2 Answers  


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


Categories