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 'Copy Constructor' and when it is called?

1 Answers  


Will the following program execute?

0 Answers  


What does flush do c++?

0 Answers  


what is a reference variable in C++?

0 Answers  


How do you know that your class needs a virtual destructor?

5 Answers   Lucent,






write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

0 Answers  


What are the advantage of using register variables?

0 Answers  


why all c++ program must have default constructor?

6 Answers   IBM,


How to write a program such that it will delete itself after exectution?

3 Answers  


Explain the isa and hasa class relationships. How would you implement each?

0 Answers  


What is #include iomanip?

0 Answers  


Why struct is used in c++?

0 Answers  


Categories