Respuesta :

The void keyword, is basically indicates that the function should not return a value. If we want the function to return a value, we can use a data type (such as int, string, etc.) instead of void, and use the return keyword inside the function.

int myFunction(int x, int y) {   return x + y; }  int main() {   int z = myFunction(5, 3);   cout << z;   return 0; } // Outputs 8 (5 + 3)

The return type of a function that returns normally but does not give its caller a result value is called the void type in several computer languages that are descended from C and Algol68. Such functions are frequently used for their side effects, such as carrying out a task or setting output parameters. Similar to Pascal's procedures and Visual Basic's syntactic structures that define subroutines, the  void keyword type is used in this context. It is comparable to type theory and the unit type found in functional programming languages. A comparison can be found at Unit type#In programming languages.

Learn more about void keyword here:

https://brainly.com/question/13014112

#SPJ4