Function tutorial in c


Function tutorials in c programming language by examples


Definition of function in c

Why we should use the function?


Function naming rule in c:


Name of function includes only alphabets, digit and underscore.

First character of name of any function must be an alphabet or underscore.

Name of function cannot be any keyword of c program.

Name of function cannot be global identifier.

Name of function cannot be exactly same as of name of function in the same scope.

Name of function is case sensitive

Name of function cannot be register Pseudo variable


Return type of a function: 


Return type of function

Function returning Pointer to user defined data type

Function which is returning pointer to pointer

Function returning pointer to derived data type

Function returning pointer to void i.e. generic pointer

Function returning pointer to double

Function returning pointer to float

Function returning pointer to integer

Function returning pointer to character

Function which is returning pointer

Function which is returning void data type

Function which is returning double data type

Function which is returning floats data type

Function returning pointer to array

Function returning pointer to enum

Function returning pointer to union

Function returning pointer to structure

Function which is returning pointer to function

Function returning int data type

Function which is returning char data type


Parameters of a function:


Function parameters

Parameter passing convention: pascal and cdecl

Call by values and call by reference

Function in c with no parameter and not returning

Function in c has parameter but not returning any value

Function in c with parameter and returning a value

What is Ellipsis or … in c?


Function recursions:


Function recursion

Important points about function recursion

How to find out output of recursion program in quicker way

What is declaration of function?

What is main function?

Function overloading

typedef of function

How to calculate size of a function?

What is prototype of a function?

Function standards

Renaming of function

Nesting of function call

13 comments:

Nusrat jahan tamanna said...

write a program to calculate the area of the thikness of a rim. creat a function for calculating the area of circle.then call it from main function twice to get the larger area and smaller area by takin outer and inner radious as inputs.

//plz solve this problem//

chandan tati said...

nice

143 AnandSingh said...

wap to calculate the amount of any sale price of any number

Srinu Vasu said...

I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly
sharing with us that awesome article you have amazing blog

Laptop service center in Hyderabad

janakikrishnan said...

Very nice blog and every fresher wants to go through this to shine in this domain.

C Programming Classes in Coimbatore
C++ Training
Learn C
Learn C Programming
C Programming Course
C Programming Classes

sheela rajesh said...

You expressed your thoughts in different way and i really enjoyed with your article.
Python Training in Chennai
Python course in Chennai
JAVA Training in Chennai
Big data training in chennai
Selenium Training in Chennai
Android Training in Chennai
Python Training in Annanagar

Madhi Priya said...

important blog with fresh content
python courses in Bellandur|python courses in Marathahalli
selenium testing Training in Bellandur|selenium testing Training in Marathahalli

praveen jos said...

it was a great informative blog. thanks for it
python courses in Bellandur|python courses in Marathahalli
selenium testing courses in kalya Nagar|selenium courses in Marathahalli
devops courses in Bellandur|devops courses in Marathahalli
python courses in bangalore|python training in bangalore

praveen jos said...

it was a great informative blog. thanks for it
python courses in Bellandur|python courses in Marathahalli
selenium testing courses in kalya Nagar|selenium courses in Marathahalli
devops courses in Bellandur|devops courses in Marathahalli
python courses in bangalore|python training in bangalore

Alex Avid said...


I went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog.
python courses in Bellandur|python courses in Marathahalli
selenium testing courses in kalya Nagar|selenium courses in Marathahalli
devops courses in Bellandur|devops courses in Marathahalli
python courses in bangalore|python training in bangalore

ramya said...

Its an interesting blog with informative content. Thanks for this blog
python courses in Bellandur|python courses in Marathahalli
selenium testing courses in kalya Nagar|selenium courses in Marathahalli
devops courses in Bellandur|devops courses in Marathahalli
python courses in bangalore|python training in bangalore
python courses in bangalore

nisha raj said...

Your post is really awesome. It is very helpful for me to develop my skills in a right way.keep sharing such a worthy information
python training in marathahalli|python training in Bellandur
selenium training in bangalore|selenium training in kalyan nagar
devops training in bangalore|devops training in Marathahalli
phthon training in bangalore

dhanush kumar said...

Your post is just outstanding! thanx for such a post,its really going great and great work.
python training in kalyan nagar|python training in marathahalli
selenium training in marathahalli|selenium training in bangalore
devops training in kalyan nagar|devops training in bellandur
phthon training in bangalore