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 the mean of function?
What does c mean before a date?
What are all different types of pointers in c?
What is the difference between ++a and a++?
How the c program is executed?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What are the 4 types of programming language?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the use of a semicolon (;) at the end of every program statement?
What is the size of enum in c?
What is unsigned int in c?
Explain how can you avoid including a header more than once?
What is meant by int main ()?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Which is more efficient, a switch statement or an if else chain?