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:

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

Naveen said...
This comment has been removed by a blog administrator.
Naveen 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

James said...

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

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.

OGEN Infosystem (P) Limited said...

Keep it up for more valuable information like this. If you want professional website designing and SEO Services at an affordable price, please visit Ogen Infosystem and the best websites for your business.
Website Designing Company in Delhi

Webocity Technologies said...

A valuable blog for everyone, Thanks for it.
Hailing from the prestigious PGIMER, Chandigarh, Dr. Manish Budhiraja, is a dynamic & experienced Neurosurgeon whose expertise is in complex Brain & Minimally Invasive Spine Surgeries. He has specialization in Brain and Spinal Tumor surgeries, Minimally Invasive Spine Surgeries, Spinal trauma and Fixation, Pituitary Tumors and Functional Neurosurgery including Deep Brain Stimulation
Doctor Name- Dr. Manish Budhiraja {MBBS, MS (Surgery), M.Ch (Neurosurgery)}
Address- Alchemist Hospital Rd, Sector 21, Budanpur, Panchkula, Punjab 134112
Phone- 7888900544

siva said...

Nice post, I like to read this blog. It is very interesting to read.
fibonacci in python
python class inheritance
length of string in python
palindrome code
digital marketing executive interview questions and answers for freshers
50 important networking interview questions answers

siva said...

Great information. The above content is very interesting to read. This will be loved by all age groups.
fibonacci series
multilevel inheritance in python
hybrid inheritance in python
palindrome examples
digital marketing executive interview questions and answers for freshers
basic networking questions and answers

Rupesh Kumar said...

I found a lot of information here to create this actually best for all newbie here. Thank you for this information. Are you interested in enhancing your English language skills in Qatar, but find yourself grappling with language anxiety, limited resource access, and pronunciation challenges?
For more info visit Spoken English language Class in Qatar

dover white marble said...

I wanted to take a moment to commend you on your consistency in delivering high-quality content. Your articles are a reliable and informative resource.

white wood marble in Ras Al Khaimah