Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

Function and their types

$
0
0
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)
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++);
       {
           }
}
error: void value not ignored...

Function and their types

Viewing all articles
Browse latest Browse all 1271

Trending Articles