Adding two numbers without using operators

后端 未结 3 731
迷失自我
迷失自我 2020-12-04 01:49

I found this following code for addition of two numbers without using the + operator.

code to add 3 and 4:

printf(\"%d\",printf(\"%*c%*c         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 02:18

    The inner printf outputs 3 then 4 spaces and returns the number of characters, which is 7, and the outer printf is printing that result.

提交回复
热议问题