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
How many keywords (reserve words) are in c?
Write a code on reverse string and its complexity.
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is an identifier?
how to count no of words,characters,lines in a paragraph.
Explain what will the preprocessor do for a program?
Can a pointer be static?
What is null in c?
provide an example of the Group by clause, when would you use this clause
What is c standard library?
What is a null string in c?
What is string constants?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What are categories used for in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)