Example of Function with no return type and no argument
Categories: C Programming language
#include <stdio.h>
#include <conio.h>
void printmsg()
{
printf ("Hello ! I Am A Function .");
}
int main()
{
printmsg();
return 0;
};
Output : Hello ! I Am A Function .
Other example
#include <stdio.h>
#include <conio.h>
void msg (void)
{
puts ("Hello");
};
Output : Hello