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
what is the basis for selection of arrays or pointers as data structure in a program
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Explain how do you generate random numbers in c?
Dont ansi function prototypes render lint obsolete?
write a programming in c to find the sum of all elements in an array through function.
Explain the difference between malloc() and calloc() in c?
What is difference between constant pointer and constant variable?
What is typedf?
What is the use of f in c?
What is the sizeof () a pointer?
In which layer of the network datastructure format change is done
What is the use of in c?
How can I sort a linked list?
What is extern keyword in c?
Is main is user defined function?