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
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is the use of putchar function?
Write a program in c to replace any vowel in a string with z?
Write a program to use switch statement.
How to write a code for reverse of string without using string functions?
What are identifiers in c?
What is data structure in c language?
What does return 1 means in c?
what are bit fields in c?
What are bitwise shift operators in c programming?
Is c is a middle level language?
What is the scope of static variable in c?
what is the format specifier for printing a pointer value?
What is the difference between null pointer and wild pointer?
What is character set?