oh my god right only today i learned that if you increment a pointer in C it actually increments the address by the type's size and not by 1 my whole life has been a lie
=> More informations about this toot | More toots from chfour@wetdry.world
tbh i;ve only really used pointer arithmetic on char* sooo
=> More informations about this toot | More toots from chfour@wetdry.world
@chfour
Welcome to the C elite community /jk
=> More informations about this toot | More toots from sudo200@layer8.space
@chfour@wetdry.world im never using a program from you again
=> More informations about this toot | More toots from puppygirlhornypost2@transfem.social
@chfour@wetdry.world a 32 bit integer is 4 bytes. if it incremented it by one... instead of pointing to the starting address you'll be in the middle of the integer... that's not very useful :blobcatgooglynotlikethis:
=> More informations about this toot | More toots from puppygirlhornypost2@transfem.social
@puppygirlhornypost2 i know i just thought since it's an address naturally it'd behave like a number lol
=> More informations about this toot | More toots from chfour@wetdry.world
@puppygirlhornypost2 Good news: ive never written anything worthwhile
=> More informations about this toot | More toots from chfour@wetdry.world
@chfour 'c doesnt have memory safety features' well what about This...
=> More informations about this toot | More toots from mothcompute@vixen.zone
@mothcompute CHECKMATE w*ke "RUST" users !!!
=> More informations about this toot | More toots from chfour@wetdry.world
@chfour That makes sense considering integer arrays etc. work the way they do, I've never questioned it I guess, but it would explain why casting pointers is something one does....
=> More informations about this toot | More toots from quantensalat@astrodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini