I have read it about function and their types in c programming. so after reading I tried to write program for function with no argument and no return type
This is my program ( void function_name (void)
error: void value not ignored...
Function and their types
This is my program ( void function_name (void)
Code:
#include<stdio.h> void delay (void); int main (void) { int number; number = delay(); printf(" Print number : %d",number); return 0; } int delay (void) { unsigned int i; for (i = 0; i < 6; i++); { } }
Function and their types