write program on arrays

Answer Posted / antony

#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i;
for(i=1;i<=10;i++)//getting data from user
{
scanf("%d",&a[i]);
}
for(i=1;i<=10;i++)//print the data
{
printf("%d",a[i])
}
getch();
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you find the exact size of a data type in c?

595


What is the difference between procedural and declarative language?

641


Is c compiled or interpreted?

659


Write a code to generate divisors of an integer?

631


What are the types of data files?

723






Explain how do you generate random numbers in c?

616


What is the meaning of ?

607


What is the explanation for prototype function in c?

563


What are the different properties of variable number of arguments?

658


What is hash table in c?

562


Difference between malloc() and calloc() function?

652


Is struct oop?

575


Who is the main contributor in designing the c language after dennis ritchie?

542


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2113


What is sizeof array in c?

588