Is %d and %i same in c language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is %d and %i same in c language?

What's the difference between %lld and %.ld

26th Aug 2020, 10:50 AM
Dikki
Dikki - avatar
3 Answers
+ 4
First read basics then ask if u have doubts. Character format specifier : %c Double floating-point number : %lf Integer format specifier : %d, %i Floating-point format specifier : %f, %e or %E Unsigned Octal number for integer : %o Unsigned Hexadecimal for integer : %x, %X String printing : %s decimal integer : %d Integer may be octal or in hexadecimal : %i Double floating-point number : %lf ....... Thankyou.......
26th Aug 2020, 10:58 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
You can post separate questions on one post .dont need to post different-different question. https://www.sololearn.com/Discuss/2464444/?ref=app
26th Aug 2020, 11:01 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
d for decimal; i for integer
27th Aug 2020, 7:50 AM
Shahed Mohammad Hridoy
Shahed Mohammad Hridoy - avatar