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
What is the difference between variable declaration and variable definition in c?
What do you understand by normalization of pointers?
What is a const pointer?
Can you define which header file to include at compile time?
What are the 4 types of programming language?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is a global variable in c?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Why malloc is faster than calloc?
Is printf a keyword?
For what purpose null pointer used?
What is the difference between struct and typedef struct in c?
What is pointer to pointer in c?
How can you determine the size of an allocated portion of memory?
Explain goto?