[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/pol/ - International /Pol/itics & /Bant/er

Politics & countrywars
Catalog
Name
Email
Subject
Comment
Flag
File
Password (For file deletion.)

File: ClipboardImage.png 📥︎ (555.85 KB, 635x852) ImgOps

 â„–3734719[Quote]

>You pass a reference to an array as a function argument
>sizeof() doesn't work anymore

cniles… is our compiler dumb?

 â„–3734722[Quote]

>>3734719 (OP)
you're supposed to use sizeof with types

 â„–3734724[Quote]

>your function returns a pointer
Rookie mistake. Rookie mistake.

 â„–3734725[Quote]

>nudevs can't even implement a tlv struct…

 â„–3734726[Quote]

>>3734725
>tel aviv struct
shut up bibi

 â„–3734728[Quote]

>>3734724
this is normal though

 â„–3734732[Quote]

>>3734728
i mean like this

int* foo(){
int val;
return &val;
}

which will return a stack address that is not known anymore.

 â„–3734740[Quote]

>>3734732
you dumb fucking nigger

 â„–3734741[Quote]

>>3734740
i am sorry

 â„–3734748[Quote]

>>3734732
geg vatnigs are filtered by C and their software is full of UB

 â„–3734753[Quote]

>>3734748
i just showed it as an example doey

 â„–3734755[Quote]

>>3734753
if C is too hard for you to understand you have no idea how a computer works let alone coding in assembly

 â„–3734758[Quote]

>>3734755
but I do understand why returning the pointer to a local variable doesn't work doe.

 â„–3734765[Quote]

also the asterisk should stick to the type.



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]