+ 2
Bugs in C Lesson Code
Why is there a warning in Dataypes example code? It wasn't there before! See here 👇 Link: https://www.sololearn.com/learn/C/2912/
3 Answers
+ 7
In addition to the comments Aaron Eberhardt made, I will add an explanation for what's happening in that lesson:
1) The code is fine, but would be aesthetically pleasing to cast the values to int: (int)sizeof(int). This leads to point 2:
2) The sizeof operator returns a value of type size_t. This is an unsigned integer of at least 16 bits according to the standard, which is why printf complains about the format.
+ 3
Sololearn switched to Linux servers several weeks ago. Though they still use the same compiler, the behavior of the output has changed as well. Before the update Sololearn ignored compiler warnings, now all warnings are added to the output.
+ 1
Thanks 😊 Ace Aaron Eberhardt
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
3 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes