Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.


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

Post New Answer

More C++ General Interview Questions

What is the use of vtable?

0 Answers  


What is auto used for in c++?

0 Answers  


What is runtime errors c++?

0 Answers  


What are the storage qualifiers?

0 Answers  


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

0 Answers  






Where are setjmp and longjmp used in c++?

0 Answers  


What is a dynamic binding in c++?

0 Answers  


How do you clear a map in c++?

0 Answers  


class professor {}; class teacher : public virtual professor {}; class researcher : public virtual professor {}; class myprofessor : public teacher, public researcher {}; Referring to the sample code above, if an object of class "myprofessor" were created, how many instances of professor will it contain? a) 0 b) 1 c) 2 d) 3 e) 4

4 Answers   Quark,


explain the reference variable in c++?

0 Answers  


What is the use of volatile variable?

0 Answers  


Which format specifier is used for printing a pointer value?

0 Answers  


Categories