Home » C Programming » Variables » Question
  1. Which part of the program address space is p stored in the following C code?
    #include <stdio.h>
    int *ptr;
    int main()
    {
    int n = 0;
    ptr = &n;
    return 0;
    }
    1. Data segment
    2. Code/text segment
    3. Stack
    4. Bss segment
Correct Option: D

Bss segment



Your comments will be displayed only after manual approval.