Function with no arguments & no return value in C
Notes:
Function with no arguments and no return value in C Programming:
Function without arguments and without return value in C:
Function without parameters and without return value in C:
Function with no parameters and no return value in C:
- Lets understand how to create a function; which does not accept any parameters and does not return any value
Ex:
#include <stdio.h>
void displayHi();
void displayBye();
int main()
{
displayHi();
displayHi();
displayBye();
displayBye();
return 0;
}
void displayHi()
{
printf("Hi\n");
}
void displayBye()
{
printf("Bye\n");
}