Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int a=90 , b=-89;
(a>b)?printf("a is larger") : printf(" b is larger ");
getch();
}
thank u
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
What is c language in simple words?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is difference between structure and union with example?
What are the different types of objects used in c?
How to implement a packet in C
What is a nested loop?
Can the “if” function be used in comparing strings?
Why c is a mother language?
Why we not create function inside function.
What are variables c?
Tell me what is null pointer in c?
Are pointers integers in c?
Write a program to identify if a given binary tree is balanced or not.
Is multithreading possible in c?