write a program to print the one dimensional array.
#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 |
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
Reverse a string word by word??
What is d'n in c?
What is a macro, and explain how do you use it?
how to find your architecture is LittleEndian or BigEndian?
convert 12345 to 54321 withoutusing strig
What is a double c?
Tell us something about keyword 'auto'.
what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }
How can I open a file so that other programs can update it at the same time?
write a programme to convert temperature from farenheit to celcius?
What are different types of variables in c?