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

what is the most appropriate way to write a multi-statement macro?

1 Answers  


What is variable in c with example?

1 Answers  


Can you please explain the difference between exit() and _exit() function?

0 Answers  


how can we use static and extern?and where can we use this?

3 Answers   Excel,


Hai why 'c' is the middle language

4 Answers  






Explain zero based addressing.

0 Answers  


Are there constructors in c?

0 Answers  


What is "Duff's Device"?

0 Answers   Celstream,


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

0 Answers   Wilco,


Write programs for String Reversal & Palindrome check

0 Answers   TISL,


Explain the Difference between the New and Malloc keyword.

0 Answers   InterGraph,


What is the difference between formatted&unformatted i/o functions?

0 Answers  


Categories