I'm going through memory layout in C Memory Layout of C Programs - GeeksforGeeksand have been exploring two different programs mention in point 1 and 2 . In both programs, I expected the size of the BSS segment to change based on the content, but I'm consistently getting the same size.
Could you help me understand why this might be happening? Below are the commands I've tried and their outputs on my Ubuntu system: