Why we are using void Keywords?



Suraj Said

+0 -0

The "void" keyword is used in C and C++ to indicate that a function does not return a value. It is also used as a placeholder in function pointers and function prototypes when the function takes no arguments. This allows the compiler to check that the correct type of function is being called, and also to generate appropriate assembly code for the function call.



Submit Your Response