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
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Describe dynamic data structure in c programming language?
What is an example of structure?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Why can’t constant values be used to define an array’s initial size?
What is the use of a conditional inclusion statement in C?
Write a program for Overriding.
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Why can't I perform arithmetic on a void* pointer?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Is swift based on c?
What are the types of macro formats?
Why is c called "mother" language?
When should the const modifier be used?