How do I declare a variable so that it gets placed in the BSS segment instead of on the stack/in the data segment?
Code:int a; /* Data segment? */ static int b; /* Data segment? */ char buf1[10]; /* Data segment? */ static char buf2[10] /* Data segment? */ int main(void) { int c; /* Stack? */ static int d; /* Data segment? */ char buf3[10]; /* Stack? */ static char buf4[10] /* Data segment? */ return 0; }