Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / raj sarswat
void main()
{
int a,b;
printf("enter the value of a and b");
scanf("%d,%d",&a,&b);
a>b?printf("%d",&a):printf("%d",&b);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How #define works?
Differentiate Source Codes from Object Codes
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
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
Why & is used in scanf in c?
how logic is used
What do the functions atoi(), itoa() and gcvt() do?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Hai what is the different types of versions and their differences
How to find a missed value, if you want to store 100 values in a 99 sized array?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
How can I ensure that integer arithmetic doesnt overflow?
Why c language is called c?
What does the && operator do in a program code?
How can I do serial ("comm") port I/O?