without using arithmatic operator solve which number is
greater??????????



without using arithmatic operator solve which number is greater??????????..

Answer / niranjan vg

use relational operator
(a > b)
this is not a arithematic operator.

or you can use conditional operator
(a>b)?a:b;

Is This Answer Correct ?    25 Yes 3 No

Post New Answer

More C Interview Questions

what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 Answers  


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");

9 Answers   TCS,


for (i <= 5 && i >= -1;++i; i > 0) { printf("%d ", i); }

1 Answers  






IS STRUCTURES CAN BE USED WITHIN AN ARRAY?

7 Answers   Caritor,


write a C program to print the program itself ?!

16 Answers   TCS,


Hi can anyone tell what is a start up code?

0 Answers   CTS,


What is stack in c?

0 Answers  


What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?

1 Answers  


What is difference between union All statement and Union?

0 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


Categories