C Tutorial
C is the language underneath operating systems, embedded devices and many other languages. Learning it teaches you how a computer actually runs your code. The track covers the GATE "Programming in C" syllabus, and most lessons end with GATE-style questions whose programs were compiled and run to check every answer.
1Getting Started
- Your First C ProgramWhat C is, how a C program is compiled, and the classic hello program.
- Variables and Data TypesDeclare variables with a type and learn how C stores numbers and characters.
- OperatorsArithmetic, comparison, logical and increment operators in C.
- Bitwise OperatorsWork directly with the bits of integers using &, |, ^, ~, << and >>.
- Input and OutputRead numbers and text from the keyboard with scanf and format output with printf.
2Control Flow
3Functions
4Arrays and Strings
5Pointers and Memory
- PointersUnderstand memory addresses and variables that store them.
- Pointers and ArraysSee how arrays and pointers are related, and use pointer arithmetic.
- Advanced PointersPointers to pointers, pointers and 2-D arrays, arrays of pointers, and function pointers.
- Dynamic MemoryAllocate memory at run time with malloc and release it with free.