What is the difference between cin.read() and cin.getline()?


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

Post New Answer

More C++ General Interview Questions

Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

0 Answers  


What is iostream in c++ used for?

0 Answers  


Explain about templates of C++.

0 Answers  


How delete [] is different from delete?

0 Answers  


Explain virtual destructor?

0 Answers  






Can you explain the term "resource acquisition is initialization?"

1 Answers   Amazon,


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

0 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


How does work in c++?

0 Answers  


What is java and c++?

0 Answers  


What are associate containers?

0 Answers  


class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData

2 Answers   Quark,


Categories