What a "void" is?

I don´t understand what a “void” is, this is the example in module 4 - functions 1 video…

void dayGreeting(int loops){

for(int i = 0; i < loops; i++){
    printf("Good morning\n");
    printf("Good afternoon\n");
    printf("Good evening\n");



int main(int argc, const char * argv[]) {


return 0;


1 Like

void is a keyword that means that the function doesn’t return anything.

void is used as a type, like int or char, when a type is expected, but the intention of the code doesn’t require one.

So…basically doe not “respond” if i execute it? what is it for then? i understand that “int” means integer…a number, and it is going to return me a number, but void?