+ 2

What is %i in c language

13th Nov 2018, 11:06 AM
Madhav Jha
Madhav  Jha - avatar
3 odpowiedzi
+ 2
%i = Integer %d = Decimal %o = Octal %x = small letter HexaDecimal %X = capital letter HexaDecimal %u = unsigned int %l = long int %lu = long unsigned int %c = character %f = float %lf = double
22nd Nov 2018, 4:39 PM
Madhav Jha
Madhav  Jha - avatar
+ 6
https://www.sololearn.com/Course/C/?ref=app Format specifiers begin with a percent sign % and are used to assign values to corresponding arguments after the control string. https://www.sololearn.com/learn/C/2914/
13th Nov 2018, 12:30 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 3
Its same as %d you putting it to printf function when you want format a digit there.
13th Nov 2018, 11:20 AM
Procesorek
Procesorek - avatar