Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / amit
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Explain union.
What should malloc(0) do?
What are the advantages and disadvantages of pointers?
Is anything faster than c?
What are linker error?
why wipro wase
What is bin sh c?
Why main is not a keyword in c?
how to construct a simulator keeping the logical boolean gates in c
What are the types of c language?
List the variables are used for writing doubly linked list program.
What is the difference between exit() and _exit() function?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Give me the code of in-order recursive and non-recursive.
What is hungarian notation? Is it worthwhile?