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
Answer / arikuntha varathan
since 12<18 and also 18<21 the codition becomes true
| Is This Answer Correct ? | 13 Yes | 1 No |
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 |
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 |
When is the copy constructor called?
What is a rooted hierarchy?
Define pre-condition and post-condition to a member function in c++?
Difference between overloading vs. Overriding
What is the stack?
Where and why do I have to put the "template" and "typename" keywords?
Do you know the use of vtable?
What is meant by a delegate?
What is a smart pointer?
What is a terminating character in c++?
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?