C. Program to print GoodMorning,Afternoon,Night using Function(Prototype,Calling,Defination)

#include<stdio.h>


void goodmorning();                                  //Function prototype

void goodafternoon();

void goodnight();


int main()


{   

    goodmorning()  ; 

    goodafternoon();

    goodnight();

    

    return 0;

}

void goodmorning(){

    printf("good morning\n");

}

void goodafternoon(){

    printf("gooda fternoon\n");

}

void goodnight(){

    printf("good night\n");

}


Comments