Author name: Amlendra

I am an embedded c software engineer and a corporate trainer, currently, I am working as senior software engineer in a largest Software consulting company . I have working experience of different microcontrollers (stm32, LPC, PIC AVR and 8051), drivers (USB and virtual com-port), POS device (VeriFone) and payment gateway (global and first data).

Memory Layout In C

Memory Layout of C program

Memory layout of a C program typically represented by five main segments: Stack Segment: Local variables reside in stack, and it also handles function call management. Heap Segment: All dynamic memory allocation (memory allocation during runtime using functions like malloc(), calloc(), …etc.) manages by heap dynamic. BSS (Uninitialized Data Segment): Stores global and static variables

Memory Layout of C program Read More »

C macros and its types in C

C Macros are defined using the #define preprocessor directive and do not need to be terminated by a semicolon (;). In C programming, macro is a piece of code which has been given a name using the #define, we will see it in the below example code. Whenever we use this name in the code,

C macros and its types in C Read More »