I am new to programming and Stack Overflow. Before asking my first question, I watched several videos and read the guidelines. I then looked at some existing questions, but was unable to figure out why some questions received downvotes.
For example, this question has received 3 downvotes. I don't know why.
To me, it is just someone asking a 'simple' question about a piece of code he wrote that is not working properly. I must be missing something. Can someone explain what it is that I'm missing, and why that question was judged to be a bad question by Stack Overflow members?
For a person trying to learn to code without any teachers, the help from the community is essential.
Edit: the reason I think it's not the same with "When is it justifiable to downvote a question?" is because this is a very specific case that I didn't understand at first, but after all your comments it is now clear to me and I hope it will be for other new people reading this.
return malloc(...) + 5;
(granted OP would likely find answer themselves).