VOID has not been explained in any of the videos and you gyzz are using it,
how can one understand that.
What is void not explained?
Hi!
No need to worry buddy,its just a small concept.
Here in the video Prateek Bhaiya has written
void increment(int *aptr){}
Here void is the return type of the function increment, it means that function increment does not return a value. As you can see also
void increment(int *aptr){
*aptr = *aptr+1;
cout<<“Inside Function”<<*aptr<<endl:
}
In this function we are only incrementing *aptr and printing something. There is no return statement present. Similarly there can be many more return types as well. Its just a small concept, no need to panic, you’ll get familiar to it.
Thanks!