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
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
what is stack , heap ,code segment,and data segment
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
How old is c programming language?
How can I invoke another program or command and trap its output?
Here is a neat trick for checking whether two strings are equal
What are the types of unary operators?
What is the benefit of using const for declaring constants?
What is a ternary operator in c?
How to define structures? ·
How can you pass an array to a function by value?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Why functions are used in c?
What is array in c with example?
What are the rules for the identifier?