Priyanka
Priyanka @_priyankagarg ·
What Will Be the Size of A and B? Same or Different? Try calculating it first, then read on The size of a struct can change depending on the order of its members. Even though both store 6 bytes of actual data, the compiler inserts padding to satisfy alignment rules. #cpp #struct
22
Reza.Tajari
Reza.Tajari @RezaTajari70 ·
Do you want to know what the GC does in the CRL? #dotnet #struct #GC Imagine creating millions of tiny objects (for example, pixels in an image),if your program slows down because the GC is too busy, using a struct can reduce that pressure
20
Holiday
Holiday @thelastofinusa ·
Replying to @thelastofinusa
In the version we wrote in class, each function returned just a single value (either a string or an unsigned integer). I wanted to take it a step further by making the function return multiple values together, that's when I realized I needed to use a #Struct
1
41
zakki
zakki @k_matsuzaki ·
遅くともバージョン管理下になったHSP3.2からhspcmp的には #struct Foo int i, float f, double d みたいなコード片は合法なんだけどこれどう使うんだろう?HSP2の残滓か実装されななかった新機能?
1
260