+ 2

Percentage Signs in C and a single {.

I don’t understand why there is always a single bracket of that shape alone in the code after the first or second line. I also don’t get what %2 and %d means please help the Solo Learn explanation confused me.

3rd Nov 2020, 4:02 AM
Whats My True Name???
Whats My True Name??? - avatar
2 ответов
+ 2
Any bracket that is opened will be closed or you get syntax error %d %f etc. specifies what kind of data type the variable is. %2d is used for reserving space of 2 characters while printing Eg printf("%3d",10); printf("%3d",100); 10 100
3rd Nov 2020, 4:09 AM
‎ ‏‏‎Anonymous Guy