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


Please Help Members By Posting Answers For Below Questions

What does typeof return in c?

641


string reverse using recursion

1820


difference between Low, Middle, High Level languages in c ?

1638


What does d mean?

593


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

656






What are the keywords in c?

648


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2729


What is dynamic memory allocation?

814


c language interview questions & answer

1465


What is const keyword in c?

754


What does the function toupper() do?

662


Is c is a high level language?

626


List some applications of c programming language?

561


What are the various types of control structures in programming?

634


What does %c mean in c?

658