Square of a number being defined using #define

后端 未结 11 1184
说谎
说谎 2020-11-27 08:06

I was just going through certain code which are frequently asked in interviews. I came up with certain questions, if anyone can help me regarding this?

I am totally

11条回答
  •  眼角桃花
    2020-11-27 08:15

    define is just a text macro

    main()
    {
          int i,j;
          i=4/ 4 * 4;  // 1 * 4
          j=64/4 * 4; // 16 * 4
          printf("\n %d",i);
          printf("\n %d",j);
          printf("\n %d",square(4));
          getch();
    }
    

提交回复
热议问题