As per my understanding, initialized data section contains static and global variable that are explicitly initialized. .bss section contains uninitialized global and static variable.
Why we need 2 different section i.e initialized data section and .bss section? What is advantage of such structure?
Where string literal gets store(in which section)? e.g. char * ptr = "ABCD";