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/
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.
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.
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!