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
How can I discover how many arguments a function was actually called with?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
can any one provide me the notes of data structure for ignou cs-62 paper
Why c is procedure oriented?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
How can I run c program?
Explain union.
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
How can you call a function, given its name as a string?
What is c language in simple words?
What are the key features in c programming language?
What does 1f stand for?
What are the back slash character constants or escape sequence charactersavailable in c?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2