0

When I declare a static variable like

static int x = 0;

in which section of data segment, it is stored? I know all uninitialized data variables are first initialized to '0' by kernel and stored in BSS. But if I initialize the global or static variables to '0' myself where these variables will be stored (in BSS or initialized Data segment)?

kadina
  • 5,042
  • 4
  • 42
  • 83

0 Answers0