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

Please post the model question paper of hal?

2 Answers  


Explain selection sorting. Also write an example.

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


What are the 3 levels of programming languages?

0 Answers  


What are the advantages of c++? Explain

0 Answers  


How do I get good at c++ programming?

0 Answers  


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

0 Answers  


What is ios in c++?

0 Answers  


Difference between pointer to constant and constant pointer to a constant. Give example.

0 Answers   HAL,


what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking

2 Answers   Hughes,


How can you say that a template is better than a base class?

0 Answers  


i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem

1 Answers   Reliance,


Categories