When is the Void Keyword used in a function in C programming?
Filed under: C Programming on 2022-07-16 16:43:16
The keyword “void” is a data type that literally represents no data at all. The most obvious use of this is a function that returns nothing: void PrintHello() { printf("Hello"); return; // the function does "return", but no value is returned } Here a function is declared, and all