fork download
  1. #include <stdio.h>
  2. #define PRINT_INT(X) printf(#X"-->%d\n",X)
  3. #define PRINT_STUDENT(X) printf(#X".x-->%d " #X".y-->%d\n" ,X.x ,X.y)
  4.  
  5. struct student
  6. {
  7. int x;
  8. int y;
  9. };
  10. int main()
  11. {
  12.  
  13. int c = 10;
  14. PRINT_INT(c);
  15. struct student stud1 = {200 , 300};
  16. struct student stud2 = {400 , 500};
  17. PRINT_STUDENT(stud1);
  18. PRINT_STUDENT(stud2);
  19. return 0;
  20. }
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
c-->10
stud1.x-->200 stud1.y-->300
stud2.x-->400 stud2.y-->500