Find greatest number out of 10 number without using loop.

Answer Posted / satya

#include<stdio.h>
void main()
{
static int big=0,a=0,cnt=0;
printf("enter number");
scanf("%d",&a);
if(a>big)
big=a;

if(cnt<=10)
{
cnt++
main();
}
printf("largest number amongest 10 numbers is :%d",big);
}

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between variable declaration and variable definition in c?

564


What do you understand by normalization of pointers?

627


What is a const pointer?

638


Can you define which header file to include at compile time?

589


What are the 4 types of programming language?

583






what is a NULL Pointer? Whether it is same as an uninitialized pointer?

758


What is a global variable in c?

591


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1717


Why malloc is faster than calloc?

592


Is printf a keyword?

762


For what purpose null pointer used?

606


What is the difference between struct and typedef struct in c?

657


What is pointer to pointer in c?

634


How can you determine the size of an allocated portion of memory?

745


Explain goto?

718