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 |
What is the type of this pointer in c++?
Write a program to concatenate two strings.
How do you initialize a string in c++?
What is exception handling? Does c++ support exception handling?
Why is c++ awesome?
What is a constructor initializer list and when we use constructor initializer list?
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
What is the difference between method overloading and method overriding in c++?
What is a c++ vector?
make a middle node of doubly linklist to the top of the list
What is protected inheritance?
What is runtime errors c++?