Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the function of multilevel pointer in c?

1067


What is the use of pragma in embedded c?

1039


What is this pointer in c plus plus?

1067


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);

1117


Is printf a keyword?

1187


int far *near * p; means

3539


What are the advantages of union?

1060


Can you return null in c?

1144


write a c program to find the sum of five entered numbers using an array named number

2120


What is the use of void pointer and null pointer in c language?

1105


Is it valid to address one element beyond the end of an array?

1158


Using which language Test cases are added in .ptu file of RTRT unit testing???

4263


How does placing some code lines between the comment symbol help in debugging the code?

981


how could explain about job profile

1906


Differentiate between static and dynamic modeling.

1083