What is else if syntax?



What is else if syntax?..

Answer / Vijeta

The 'else if' statement in C++ is used for multiple conditional tests in a row. It checks the condition after 'if', and if that condition is false, it proceeds to check the next 'else if'. If all conditions are false, then the code inside the 'else' block (if present) will be executed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why do we need pointers?

1 Answers  


Define a constructor - what it is and how it might be called (2 methods)?

1 Answers  


Why do we use structure in c++?

1 Answers  


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1 Answers  


What is constructor c++?

1 Answers  


What is oops in c++?

1 Answers  


Write a program to find the Factorial of a number

1 Answers  


Check for Balanced Parentheses using Stack?

1 Answers  


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1 Answers  


If a header file is included twice by mistake in the program, will it give any error?

1 Answers  


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

1 Answers  


What are the advantages of c++?

4 Answers  


Categories