logo

CuriousTab

CuriousTab

Expressions problems


  • 1. What will be the output of the program?
    #include<stdio.h>
    int main()
    {
        int i=2;
        printf("%d, %d\n", ++i, ++i);
        return 0;
    }
    

  • Options
  • A. 3, 4
  • B. 4, 3
  • C. 4, 4
  • D. Output may vary from compiler to compiler
  • Discuss

First 2 3