Blogware Logo
Blogware
Home
Celebriware
Feedback
Need Help?
ImageSurajit Nandy
Published on : 2nd Oct 2021
Cover Image
Function in C programming
A function is a group of statements used to perform a well-defined task.
Function declaration :
return_type function_name(type1 arg1, type2 argr2, type3 arg3, ...., typen argn);
Function signature :
All the things present in function declaration except return type is function signature.
Function body :
return_type function_name(type1 arg1, type2 argr2, type3 arg3, ...., typen argn)
{
// statements
}
Function calling type :
  1. Call by value : when a value is passed to a function, the process is called call by value.
  2. Call by reference : when an address is passed to a function, the process is called call by reference.
Function arguments :
  1. Formal arguments : Arguments in function are called formal arguments.
  2. Actual arguments : Values passed at the time of function calling are called actual arguments.
Example :
#include <stdio.h> void func() { printf("Hi, I'm a function."); } int main(int argc, char** argv) { func(); return 0; }
Output :
Hi, I'm a function.
CelebriwareProductsServicesAdvertisementInvestorsPrivacy PolicyTerms of Service
Blogware Logo
Copyright © 2025 Blogware. All rights reserved.