Are you hiring embedded system software professional ?
We will try to update this post with interesting facts related to Embedded C.
- We can use void main(void) for bare-metal programming
- You will hardly find any in-built function returning char (not char *) datatype
- void is the datatype but can’t be used for defining variable except
- void *ptr
- It doesn’t matter how many time you include a header file provided you have Guard macro
- typedef is handled by compiler not Preprocessor
- One can define Linked list node in stack, data segment and heap memory but should use Heap memory to create linked list
- 2’s complement is used to store negative integers only, not in floating.
Above Tips added by Sanjay Adhikari , Computer Science and Engineering (1987 -1991) , Technology teacher at Embedkari Systems
- One can print without using semicolon using if.
- It is possible to change the value of const (stored in volatile memory) using a pointer.
Would you like to share any interesting Embedded (not only C) question or Learning Tips?
Just put the question in the comment box below and provide information about you in the above given format. We may publish all together as separate doc or part of eMagazine. You may also send to info@embedkari.com
