Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    int x = 0;
    void main()
    {
    int *ptr = &x;
    printf("%p\n", ptr);
    x++;
    printf("%p\n ", ptr);
    }
  2. A.
    Same address
    B.
    Different address
    C.
    Compile time error
    D.
    Varies

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment