Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        void main()
        {
            int x = 4;
            int *p = &x;
            int *k = p++;
            int r = p - k;
            printf("%d", r);
        }
  2. A.
    4
    B.
    8
    C.
    1
    D.
    Run time error

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment