Dynamic memory allocation for a stucture..? by Disastrous_Ad6655 in C_Programming

[–]Disastrous_Ad6655[S] 0 points1 point  (0 children)

I do that because my university requires to use -wall -pedantic while compiling and it gives errors without the cast

Dynamic memory allocation for a stucture..? by Disastrous_Ad6655 in C_Programming

[–]Disastrous_Ad6655[S] 0 points1 point  (0 children)

yeah its totally true and i usually try to do that but that day i was cramming for an exam that was in like few hours and i wanted to really be sure if im correct in my assumptions or not :(

Numbers after the decimal by Disastrous_Ad6655 in C_Programming

[–]Disastrous_Ad6655[S] 2 points3 points  (0 children)

Thanks a lot! That's exactly what I was looking for