Single Choice Not Set

QWhat 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);
    }

ID: #1253 Pointer in C Language 2,889 views
Question Info
#1253Q ID
Not SetDifficulty
Pointer in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 4
  • B 8
  • C 1
  • D Run time error
Correct Answer

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.