Answer Posted / rina
#include<stdio.h>
#include<conio.h>
void main()
{
int i,a[5],n;
clrscr();
printf("\nenter the no.");
scanf("%d",&n);
for(i=1;i<=5;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=5;i++)
{
printf("%d",a[i]);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How can I list all of the predefined identifiers?
Why do some versions of toupper act strangely if given an upper-case letter?
Explain is it better to bitshift a value than to multiply by 2?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is the difference between far and near in c?
while initialization of array why we use a[][2] why not a[2][]...?
Explain how do you override a defined macro?
What are different types of variables in c?
How can I sort more data than will fit in memory?
Here is a neat trick for checking whether two strings are equal
Why c is called procedure oriented language?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is .obj file in c?
What is an array? What the different types of arrays in c?