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 restrict keyword in c?
Differentiate between a for loop and a while loop? What are it uses?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Is a pointer a kind of array?
how to build a exercise findig min number of e heap with list imlemented?
How we can insert comments in a c program?
What are the different types of pointers used in c language?
Is multithreading possible in c?
#include
What is a sequential access file?
what do you mean by enumeration constant?
How many identifiers are there in c?
How can I get the current date or time of day in a c program?
Explain how can you determine the size of an allocated portion of memory?
What is header file definition?