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

18 comments:

InnerArcane 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//

Unknown said...

nice

Unknown said...

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

Mahzar said...

GrueBleen – One of the best social media marketing agency in Riyadh- Saudi Arabia. Visit here for the all service details of GrueBleen.
Social Media Marketing Agency

Mahzar said...

BSc Perfusion Technology – If you are looking to study BSc Perfusion Technology in Bangalore, just check out the following link. In that link you can get the details of Best BSc Medical Imaging Technology colleges in Bangalore
BSc Perfusion Technology Colleges in Bangalore

Mahzar said...

Medical Imaging Technology – One of the most demanding allied health science course in recent times in India. Check out the details of Best BSc Medical Imaging Technology Colleges Details with the following link.
BSc Medical Imaging Technology Colleges In Bangalore

Mahzar said...

Agriculture Solutions – Taldeen is a plastic manufacturing company in Saudi Arabia. They are manufacturing agricultural plastic products like greenhouse cover and hay cover. Visit the below link to know more details
Agriculture Solutions
Greenhouse Cover

Mahzar said...

GrueBleen is one of the Branding and Marketing agency Based in Riyadh- Saudi Arabia. The main functions of GrueBleen is Advertising, Branding, Marketing, Office Branding, Exhibition Management and Digital Marketing. Visit the below link to know more about GrueBleen Creative Club.
Branding Agency Riyadh
Marketing Agency Riyadh

Mahzar said...

GrueBleen is one of the Branding and Marketing agency Based in Riyadh- Saudi Arabia. The main functions of GrueBleen is Advertising, Branding, Marketing, Office Branding, Exhibition Management and Digital Marketing. Visit the below link to know more about GrueBleen Creative Club.
Branding Agency Riyadh
Marketing Agency Riyadh

Mahzar said...

BBA Aviation course is the best (Most Demanded) management course in India. Here, Christian College Bangalore providing BBA Aviation course. You can get the details of Christian College BBA Aviation from the below mentioned link. If you are interested in BBA Aviation, just visit the below link to know about BBA Aviation.
BBA Aviation Colleges In Bangalore

Mahzar said...

Christian College Bangalore providing BSc Optometry Course. Here is the link about the details of BSc Optometry. You can click the below link for more information about BSc Optometry. BSc Optometry is one of the most demanding course in recent times.
Optometry Colleges In Bangalore

Mahzar said...

Christian College Bangalore providing BSc Medical Imaging Technology Course. Here is the link about the details of BSc Medical Imaging Technology. You can click the below link for more information about BSc Medical Imaging Technology.
BSc Cardiac Care Technology Colleges In Bangalore

Mahzar said...

Christian College Bangalore providing BSc Medical Imaging Technology Course. Here is the link about the details of BSc Medical Imaging Technology. You can click the below link for more information about BSc Medical Imaging Technology.
BSc Cardiac Care Technology Colleges In Bangalore

Mahzar said...

Here is the details of best BSc Medical Imaging Technology Colleges in Bangalore. You can get the college details from the below link. BSc Medical Imaging Technology Course is one of the best demanding course in recent times in India
BSc Medical Imaging Technology Colleges In Bangalore

Mahzar said...

Taldeen is one of the best plastic manufacturing company in Saudi Arabia. They are manufacturing Handling Solutions Plastic products like Plastic Pallets and plastic crates. Here is the link of the product
Handling Solutions
Plastic Pallets

James said...

ain valuable insight into the industry and fast track your career moving forward. cursos de ti

Digitalsenthil said...

Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
Selenium Training in Bangalore
Software Testing Training in Bangalore
Automation Testing Training in Marathahalli
Selenium Training in Marathahalli
Selenium Training Institutes in Bangalore
Selenium Training in Bangalore

Rajan Mhatre said...

Your website is really cool and this is a great inspiring article. Much thanks to you such a great amount for sharing this sort of information.
Visit us for Custom Printed Puma Sweat Jacket.