Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    int
    main()
    {
    int *ptr, a = 10;
    ptr = &a;
    *ptr += 1;
    printf("%d,%d/n", *ptr, a);
    }
  2. A.
    10,10
    B.
    10,11
    C.
    11,10
    D.
    11,11

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment