0

What is problem

Sir i am trying to learn c language on my behalf with videos But i getting some error in basics when i will try to get data size I don't know where is problem and what is that And explain me also please My code is here #include <stdio.h> int main (){ printf ("int: %d \n", sizeof (int)); printf ("float: %d \n", sizeof (float)); printf ("double: %d \n", sizeof (double)); printf ("char: %d \n", sizeof (char)); return 0; }

14th Jan 2020, 1:51 PM
Jitendra Kumar
Jitendra Kumar - avatar
4 Réponses
+ 2
Replace the format specifier "%d" with either "%ld" or "%lu". This has been answered already. https://www.sololearn.com/Discuss/2133719/?ref=app
14th Jan 2020, 1:55 PM
Avinesh
Avinesh - avatar
+ 2
https://www.tutorialspoint.com/format-specifiers-in-c
14th Jan 2020, 2:30 PM
Avinesh
Avinesh - avatar
0
I get it Can you explain sir What is ld and lu Some definition
14th Jan 2020, 1:56 PM
Jitendra Kumar
Jitendra Kumar - avatar
0
Thank you sir
14th Jan 2020, 2:31 PM
Jitendra Kumar
Jitendra Kumar - avatar