Find greatest number out of 10 number without using loop.
Answer Posted / dheeraj
#include<stdio.h>
#include<conio.h>
input(int a[]);
find(int []);
int i=0,a[10],j=0,max=0;
main()
{
clrscr();
printf("enter no");
input(a);
find(a);
printf("\nmax no is==%d",max);
}
input(int a[10])
{
i++;
scanf("%d",&a[i]);
if(i<10)
{
input(a);
}
}
find(int a[10])
{
if(j<10)
{
j++;
if(max<a[j])
{
max=a[j];
}
find(a);
}
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What is the function of multilevel pointer in c?
What is the use of pragma in embedded c?
What is this pointer in c plus plus?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Is printf a keyword?
int far *near * p; means
What are the advantages of union?
Can you return null in c?
write a c program to find the sum of five entered numbers using an array named number
What is the use of void pointer and null pointer in c language?
Is it valid to address one element beyond the end of an array?
Using which language Test cases are added in .ptu file of RTRT unit testing???
How does placing some code lines between the comment symbol help in debugging the code?
how could explain about job profile
Differentiate between static and dynamic modeling.