What is the limitation of cin while taking input for character array?
Answer / Vineet Padalia
The main limitation of using `cin` to take input for a character array in C++ is that it ignores white spaces by default. If you want to read a string with spaces, you need to use `getline()`. Also, when reading characters directly into an array, there's a risk of buffer overflow if the size is not properly specified.
| Is This Answer Correct ? | 0 Yes | 0 No |
What language is a dll written in?
What is a container class?
How would you call C functions from C++ and vice versa?
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.
Explain shallow copy?
What is data binding in c++?
What are static variables?
How do you test your code?
How do I open binary files?
Why are pointers not used in c++?
How do you define a class in c++?
Explain about profiling?