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 |
what is the most appropriate way to write a multi-statement macro?
What is variable in c with example?
Can you please explain the difference between exit() and _exit() function?
how can we use static and extern?and where can we use this?
Hai why 'c' is the middle language
Explain zero based addressing.
Are there constructors in c?
What is "Duff's Device"?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
Write programs for String Reversal & Palindrome check
Explain the Difference between the New and Malloc keyword.
What is the difference between formatted&unformatted i/o functions?