Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/29/01 09:29
Read: times


 
#12890 - RE: Problem in initialising structure
>The C language uses these constructs so that people who have a difficult time seeing memory in their minds can understand data.

no, structs give a more abstract, typesafe, optimizeable and portable way how data is stored and accessed.
This advantage over arrays increases if members are of different types.

>True, but neither are structures if you are good at programming.

you don't gain skill in avoiding structs but you'll earn respect in writing understandable and maintainable code, which in my opinion can't be done by banging everything into a char array.

it looks like you've only used C for your tiny 8051 projects so far, where it served you as a high level assembler - somehow sad, because if you use it in a more abstract way, C can offer you so much more.

Cheers, Roger


List of 7 messages in thread
TopicAuthorDate
Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      
RE: Problem in initialising structure            01/01/70 00:00      

Back to Subject List