Tag Archives: syntax
c programming “printf format specification”
printf format specification: %[flag][width][.precision][modifier]<type> meaning of fields with e.g.,: format output 1. flag: printf(“%7s”,”hello”); spacespacehello 2. width: prinf(“%4d”,10); spacespace10 3. precision: (“%.2f”,1.1412); 1.41 4. modifier: h interpreted as short used with i,d,o,u,x l interpreted as long used with i,d,o,u,x L interpreted as … Continue reading