But I don't have any books
I can't see any way that could go wrong. :rolleyes: Here, read this.
plus.. we didn't reached advanced functions like that..
Functions returning void are conceptually more basic than functions returning a non-void type. You're placing an unreasonable weight on the word "void" to mean something far more complex than it really does.
Can I have your explanation on what voids are? Maybe I can understand it. ._.
Maybe you can, but since I already explained what void means in the context of a return type and you didn't understand it, I'm not optimistic that repeating myself will change things until you have a stronger understanding of functions in general.