Page 1 of 1

Which part of the program address space is p stored in the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int *p; int main() { int i = 0; p = &i; return 0; }
a) Code/text segment
b) Data segment
c) Bss segment
d) Stack