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

How many types of operator or there in c?

1140


Do variables need to be initialized?

1113


What are the application of c?

1165


Is fortran faster than c?

1086


What is the advantage of c?

1210


What is the difference between formatted&unformatted i/o functions?

1113


What is the default value of local and global variables in c?

1103


Write a program to reverse a given number in c?

1080


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1785


What is break statement?

1183


What are derived data types in c?

1134


What is meant by preprocessor in c?

1083


How do I determine whether a character is numeric, alphabetic, and so on?

1189


Explain how can I convert a number to a string?

1208


Explain what is a stream?

1145