Hello everyone, please explain what is this entry in the code?

int n[10],i; for(i=0;i<=9;i++) n[i] = 0; printf("%s%13s\n","Element","Value"); for(i=0;i<=9;i++) printf("%7d%13d\n",i,n[i]); 

Specifically, these entries: %s%13s\n , %7d%13d\n ?

  • Nothing interesting. - 0andriy

1 answer 1

What exactly and how exactly to display.

For example, %7d — display the transferred number as a decimal integer ( d - decimal , decimal) in 7 familiarity.

Read more about the description of the printf function and, in general, about formatted I / O in C - there is no way to reproduce it, the topic is too big.