What are the differences between a structure and a class in C? |
[Edit] |
Answer
C does not have a class, as classes are an Object-Oriented structure.
In OO methodology, a class is a definition from which an object reference is instantiated.
A C struct is a flat memory structure defining a data-type, which is a grouping of variables or references of varying types. Pascal uses the "record" type to define the same thing.
First answer by Debiguana. Last edit by Debiguana. Contributor trust: 80 [recommend contributor]. Question popularity: 10 [recommend question]
|
Research your answer: |



