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 does malloc () calloc () realloc () free () do?
What is the use of a ‘ ’ character?
What the different types of arrays in c?
What are local static variables? How can you use them?
How can I change their mode to binary?
Describe how arrays can be passed to a user defined function
Explain the meaning of keyword 'extern' in a function declaration.
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is linear search?
Can an array be an Ivalue?
Explain what does the format %10.2 mean when included in a printf statement?
How can I make sure that my program is the only one accessing a file?
What is pass by reference in functions?
Is struct oop?
Why do we use stdio h and conio h?