Message from C, C++ talks

May 2019

— They're both readable

— Infact the 2nd one is more readable

— Int add(int x, int y) {
return x + y;
Makes more sense as the function name is add

— It literally shows u the return value


Isn't there a difference, well we are creating the sum variable and allocating it 4 bytes.

And in other case nothing, so it's reducing the time complexity, don't u think?

— Nah, it's just an example :)

— It's readable in this small code snippet, when the project gets big :(

— True, you're right🤔

— That's why "//" exists

— Yes it's the big deal

— /* or this */

— Anyway it's all #ot

— I still don't get it, whats up with this #ot

— 😐

— Off top chat