Answer Posted / mahan
struct has come into c++ from C. It enables to group together different elements of different types so that we can access them together. Basically it simplifies memory access. All members in a struct have their access as public.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What information can an exception contain?
why is iostream::eof inside a loop condition considered wrong?
Can java be faster than c++?
What is math h in c++?
Write is a binary search tree? Write an algo and tell complexity?
Can you explicitly call a destructor on a local variable?
What can I use instead of namespace std?
Explain terminate() and unexpected() function?
What is the difference between a reference and a pointer?
What is #include cmath?
What are the basic data types used in c++?
When does a 'this' pointer get created?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What is an associative container in c++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10