+ 1

why we use VOID ?

what is the prupose of using a void function if it does not return any value ?

11th Oct 2019, 11:59 PM
ihdueh77
ihdueh77 - avatar
3 odpowiedzi
+ 2
void pointers are sometimes useful for casting pointers in C.
12th Oct 2019, 7:26 AM
Sonic
Sonic - avatar
0
It is type of calling function with any data type we can call as int r(); but in case of void we can get value in main function, with getch() ;
12th Oct 2019, 4:09 PM
Pushpendra Singh
Pushpendra Singh - avatar