Why do we use setw in c++?


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

Post New Answer

More C++ General Interview Questions

What is fflush c++?

0 Answers  


Is c++ pass by reference or value?

0 Answers  


What is a linked list in c++?

0 Answers  


How do you know that your class needs a virtual destructor?

5 Answers   Lucent,


Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit

2 Answers  






What is object in c++ wikipedia?

0 Answers  


What are the restrictions apply to constructors and destructors?

0 Answers  


class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected

3 Answers   Quark,


What is type of 'this' pointer?

0 Answers  


Explain method of creating object in C++ ?

0 Answers   Wipro,


What is a conversion constructor?

1 Answers  


Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.

1 Answers  


Categories