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

How Virtual functions call up is maintained?

2 Answers  


How can we access protected and private members of a class?

0 Answers  


What is a .lib file in c++?

0 Answers  


What are the types of STL containers?

4 Answers  


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

0 Answers  






What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

0 Answers  


What is DlgProc?

0 Answers   C DAC,


What does floor mean in c++?

0 Answers  


How do we balance an AVL Tree in C++?

0 Answers   Impetus,


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 == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

0 Answers  


if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3

3 Answers  


Implement strncpy

3 Answers  


Categories