Void is an empty data type that has no value. We use void data type in functions when we don’t want to return any value to the calling function or When used for a function’s parameter list: void specifies that the function takes no parameters.
void sum(int a, int b)
printf(“Enter Two number “);
Basically void is a keyword to use as a placeholder where you would put a data type, to represent “no data”.
Dr. Sunny is an Assistant Professor in higher education. He has completed his Ph.D. He has a depth of knowledge in the research field and in higher education.