Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

functions in c programming

#include <stdio.h>
/* function return type is void and it doesn't have parameters*/
void introduction()
{
    printf("Hi
");
    printf("My name is Chaitanya
");
    printf("How are you?");
    /* There is no return statement inside this function, since its
     * return type is void
     */
}

int main()
{
     /*calling function*/
     introduction();
     return 0;
}
Source by beginnersbook.com #
 
PREVIOUS NEXT
Tagged: #functions #programming
ADD COMMENT
Topic
Name
4+2 =