if int1 has the value 12, int has the value 18, and int3 has
the value 21, what is the result:
int1 < int2 && int2 < int 3

Answers were Sorted based on User's Feedback



if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int..

Answer / arikuntha varathan

since 12<18 and also 18<21 the codition becomes true

Is This Answer Correct ?    13 Yes 1 No

if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int..

Answer / murad shaikh

here int1=12
int2=18 (int=18, is given as int2)
int3=21

so
int1 < int2 && int2 < int3
12 < 18 && 18 < 21

ans = 21;

Is This Answer Correct ?    3 Yes 1 No

if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int..

Answer / tarun

int1 = 12
int = 18 (not int 2)
int 3 = 21
then 1nt1 <int2, int2 value is not known
also int2< int3 , int2 value is not known

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C++ General Interview Questions

What is the type of this pointer in c++?

0 Answers  


Write a program to concatenate two strings.

0 Answers  


How do you initialize a string in c++?

0 Answers  


What is exception handling? Does c++ support exception handling?

0 Answers  


Why is c++ awesome?

0 Answers  






What is a constructor initializer list and when we use constructor initializer list?

3 Answers   Soft Info, TCS,


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

0 Answers  


What is the difference between method overloading and method overriding in c++?

0 Answers  


What is a c++ vector?

0 Answers  


make a middle node of doubly linklist to the top of the list

1 Answers  


What is protected inheritance?

0 Answers  


What is runtime errors c++?

0 Answers  


Categories