int age=35;
if(age>80)
{Console.WriteLine("Boy you are old");}
else
{Console.WrieLine("That is a good age");}



int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console...

Answer / Abhishek Duhan

This C++ code defines an integer variable named 'age' with the value 35, and checks whether the age is greater than 80 using the if condition. If the condition is true, it prints the string "Boy you are old". Otherwise, it prints the string "That is a good age".

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are inline functions?

3 Answers   Fidelity, Verizon,


What is a c++ class?

1 Answers  


Why do we use iterators?

1 Answers  


what are the iterator and generic algorithms.

1 Answers  


What is endl c++?

1 Answers  


show that among any group of five (not necessary consecutive ) integers, there are two with the same remainder when divided by 4.

1 Answers  


What are the 2 main types of data structures?

1 Answers  


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

1 Answers  


Why pointer is used in c++?

1 Answers  


Adobe Interview & Adobe Placement Paper

1 Answers   Adobe,


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1 Answers  


Are there any special rules about inlining?

1 Answers  


Categories