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 difference between scanf and gets?
Explain what is the difference between #include and #include 'file' ?
What does s c mean on snapchat?
int far *near * p; means
What is define c?
What is wild pointer in c?
What is substring in c?
How do we open a binary file in Read/Write mode in C?
What is sizeof c?
What is the difference between functions getch() and getche()?
Explain the difference between call by value and call by reference in c language?
Can you assign a different address to an array tag?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Does sprintf put null character?
What are the preprocessor categories?