What is the Difference between "C structure" and "C++
structure"?
Answer Posted / satsen singh
C Structure :-
1. Only variables of different data types can be declared, functions are not allowed
2. Direct access to data members is possible
3. ‘struct’ data type is not treated as built in type – use of ‘struct’ necessary to declare objects
4. Member variables cannot be initialized inside a structure
C++ Structure :-
1. In C++ structure declaration functions can also be declared
2. The members declared in a C++ structure is public by default
3. While declaring an object the keyword ‘struct’ is omitted in C++
| Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
What is the use of this pointer in c++?
What does override mean in c++?
What is an adaptor class in c++?
Which function cannot be overloaded c++?
why is iostream::eof inside a loop condition considered wrong?
What is flush programming?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What is object oriented programming (oop)?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What does new return if there is insufficient memory to make your new object?
What is c++ and its features?
Is c++ harder than java?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What are the manipulators in c++?
Explain data encapsulation?