Find greatest number out of 10 number without using loop.
Answer Posted / khurshid alam
#include<stdio.h>
int show();
int main()
{
printf("The bigger value is:%d",show());
}
int show()
{
static int big=0,a=0,c=0;
printf("enter number");
scanf("%d",&a);
if(a>big)
big=a;
if(c<=10)
{
c++;
show();
}
return big;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
How many levels of indirection in pointers can you have in a single declaration?
How do we open a binary file in Read/Write mode in C?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is a loop?
Are enumerations really portable?
What is a lookup table in c?
What is scope and lifetime of a variable in c?
When can a far pointer be used?
What are the benefits of organizational structure?
What is a protocol in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
In C language, a variable name cannot contain?
What is calloc in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);