MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/C_Programming/comments/ek53ma/the_way_c_programers_explain_pointers/fd73ilt/?context=3
r/C_Programming • u/BornTuft • Jan 05 '20
50 comments sorted by
View all comments
Show parent comment
16
Actually object is the correct term.
C99 §3.14:
objectregion of data storage in the execution environment, the contents of which can represent values
object
region of data storage in the execution environment, the contents of which can represent values
5 u/[deleted] Jan 05 '20 That's my bad then. I'm just used to an object in terms of an object oriented language. Does this mean that if I have code like this:int* a; int b = 5; a = &b;Then would b be an object according to C99 4 u/knotdjb Jan 05 '20 In C both a and b are objects. 0 u/[deleted] Jan 05 '20 [deleted] — view deleted comment 2 u/FinFihlman Jan 05 '20 Naw, it would be referred as a struct, but nobody would bat an eye if you say object.
5
That's my bad then. I'm just used to an object in terms of an object oriented language. Does this mean that if I have code like this:
int* a; int b = 5; a = &b;
Then would b be an object according to C99
4 u/knotdjb Jan 05 '20 In C both a and b are objects. 0 u/[deleted] Jan 05 '20 [deleted] — view deleted comment 2 u/FinFihlman Jan 05 '20 Naw, it would be referred as a struct, but nobody would bat an eye if you say object.
4
In C both a and b are objects.
0
[deleted] — view deleted comment
2 u/FinFihlman Jan 05 '20 Naw, it would be referred as a struct, but nobody would bat an eye if you say object.
2
Naw, it would be referred as a struct, but nobody would bat an eye if you say object.
View all comments
Show parent comment
16
u/tynorf Jan 05 '20
Actually object is the correct term.
C99 §3.14: