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
Which of these functions is safer to use : fgets(), gets()? Why?
What are the 5 types of organizational structures?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Why do we use pointer to pointer in c?
What is an identifier?
What is the general form of function in c?
What does the && operator do in a program code?
How do c compilers work?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is null pointer constant?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
When should the register modifier be used? Does it really help?
Why isnt there a numbered, multi-level break statement to break out
What is the stack in c?
How to Throw some light on the splay trees?