Embedded C programming novice to professional in 24 hrs
Why C programming?
C is a small but powerful language. C has a powerful set of operators which allows the
programmer to access the machine at bit level. C is portable that means we can move source code written in one
machine to another machine. These popular features make C as the go to language while writing operating systems,
compilers, database programs, embedded systems and so on.
Following articles on C programming are useful for a novice as well as experienced professionals. If you are going for an interview, appearing a written test or academic exam, to go through these articles will be sufficient preparation for you. At the same time if you are an experienced software professional and got stuck with a programming task, to review the programming features explained in these articles will be highly helpful.
Article contents
- What is array in C?
- Array declaration, initialization
- Accessing elements, addresses
- Passing array to a function
- 2-dimensional arrays
- Exercises,solutions
Article contents
- Pointer to integer
- Function returning pointer to int
- A pointer to a function
- Dangling pointer
- Void pointer, NULL pointer
- Exercises,solutions
Article contents
- What are storage classes?
- What are storage specifiers?
- Automatic storage class
- Static storage class
- Register storage class
- Extern storage class
- Exercises, solutions
Article contents
- What is state machine in C?
- State machine using if else
- State machine using switch
- Using function pointers
- Exercises, solutions
Article contents
- What are strings?
- Accessing string elements
- Passing string to a function
- Function returning pointer to string
- Array of pointers to strings
- Exercises,solutions
Article contents
- Declaration,definition,call
- Library,User defined functions
- Startup,Cleanup function
- return 0 vs exit(0)
- void function,Inline functions
- Reentrant,Recursive functions
- Exercises,solutions
Article contents
- What are data types in C?
- char, int, float, double data types
- Data types, size, specifiers
- Program using data types
- Exercises, solutions
Article contents
- What is structure in C?
- typedef keyword
- Passing structure to function
- Function returning pointer to struct
- Function pointers with structures
- Exercises,solutions
Article contents
- Difference between struct,union
- Endianness using union
- Break up larger data items
- Union real world application
- Exercises,solutions
Article contents
- What is bit field in C?
- Setting a bit
- Clearing one or more bits
- Toggling a bit
- Checking status of a bit
- Structural padding
- Exercises,solutions
Article contents
- C program memory layout
- C Memory layout demonstration
- Exercises,solutions
Article contents
- Creating makefile, build project
- Exercises,solutions
Article contents
- strcat library function example
- strncat library function example
- strcmp library function example
- strncmp library function example
- strchr library function example
- strrchr library function example