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 is getch c?
How to explain the final year project as a fresher please answer with sample project
How to delete a node from linked list w/o using collectons?
Why is struct padding needed?
How are portions of a program disabled in demo versions?
Why void main is used in c?
What will be your course of action for a push operation?
Difference between strcpy() and memcpy() function?
What are dangling pointers? How are dangling pointers different from memory leaks?
Where static variables are stored in c?
Is c easy to learn?
How can I delete a file?
Should I learn data structures in c or python?
What math functions are available for integers? For floating point?
Can we use visual studio for c?