write program on arrays
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / shrish cahndra tripathi
#include<sotdio.h>
#include<conio.h>
void main()
{
int a[5];
int b=1;
while b<5;
printf("/n enter value of a1");
scanf("%d",a0);
printf("/n enter value of a1");
scanf("%d",a1);
printf("/n enter value of a1");
scanf("%d",a2);
printf("/n enter value of a1");
scanf("%d",a3);
printf("/n enter value of a1");
scanf("%d",a4);
printf("/n values are :- %d, %d, %d, %d, %d"a[i]);
getch();
clrscr();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
du u know test pattern for robosoft? Plz share
1 Answers RoboSoft, TATA, Wipro,
Write a simple code fragment that will check if a number is positive or negative.
What is a built-in function in C?
Explain the meaning of keyword 'extern' in a function declaration.
What is 'bus error'?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Why can’t we compare structures?
hello everybody can we change a the adress of a variabl i mean can i put for exemple for a int *p: &p=6 ?????????
Can you please explain the scope of static variables?
Why we use stdio h in c?
Why doesnt the call scanf work?