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
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is the difference between #include and #include 'file' ?
What is the data segment that is followed by c?
What is the sizeof () a pointer?
What is the use of getch ()?
What is the difference between malloc() and calloc() function in c language?
What is derived datatype in c?
Explain a file operation in C with an example.
number of times a digit is present in a number
What is meant by recursion?
how do you programme Carrier Sense Multiple Access
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Can we assign string to char pointer?
Write a program for finding factorial of a number.