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
How do I get a null pointer in my programs?
What is spaghetti programming?
What is d scanf?
Is array a primitive data type in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is a structure member in c?
Do you know the use of 'auto' keyword?
What is dynamic dispatch in c++?
What are data structures in c and how to use them?
What is the difference between declaring a variable and defining a variable?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Is flag a keyword in c?
Explain what are the advantages and disadvantages of a heap?
Explain how to reverse singly link list.
Distinguish between actual and formal arguments.