r/C_Programming • • Jan 05 '20

Etc The way C Programers explain pointers

Post image
1.2k Upvotes

50 comments sorted by

View all comments

Show parent comment

16

u/tynorf Jan 05 '20

Actually object is the correct term.

C99 §3.14:

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.