Regarding storing return value of a function

when a function returns a value dont we need to store it in other variable and then use it and is there no concept of void datatype here

hey @Namanjain123, no it is not necessary to store the value returned by function, we can use it directly and there is no concept of void datatype in c++, when void appears in a pointer declaration, it specifies that the pointer is universal.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.