without if else statement can be written ah
No Answer is Posted For this Question
Be the First to Post Answer
What are templates? where we should use it?
what is the use of templates?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Write a program which uses functions like strcmp(), strcpy()? etc
Explain some examples of operator overloading?
Explain the auto storage classes in c++.
What are the types of pointer?
Why is c++ a mid-level programming language?
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.
Write a Program for find and replace a character in a string.
How does java differ from c and c++?
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