How do i use the 'malloc' function. Can someone give me an example.. Thanks in advance...
See K&R? But, in embedded applications, it's usually best avoided.
If you dynamically-allocate, it means you'll have to access your dynamic data via pointers. This is probably less efficient than direct addressing - especially for structures!