without if else statement can be written ah


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are templates? where we should use it?

2 Answers   Alcatel,


what is the use of templates?

3 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


Explain some examples of operator overloading?

0 Answers  






Explain the auto storage classes in c++.

0 Answers  


What are the types of pointer?

0 Answers  


Why is c++ a mid-level programming language?

0 Answers  


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.

1 Answers  


Write a Program for find and replace a character in a string.

0 Answers  


How does java differ from c and c++?

0 Answers  


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

0 Answers  


Categories