O
onkar
Given the following code & variable i .
int main(int argc,char **argv){
int i;
printf("%d\n",i);
return 0;
}
here i is allocated from bss or stack ?
I think it is stack,because it prints garbage value; If it were
allocated from bss the default value would be 0
please tell me if I am right or wrong ??
int main(int argc,char **argv){
int i;
printf("%d\n",i);
return 0;
}
here i is allocated from bss or stack ?
I think it is stack,because it prints garbage value; If it were
allocated from bss the default value would be 0
please tell me if I am right or wrong ??