Functions Notes CPP
Functions Notes CPP
Talk to a Teacher
http://spoken-tutorial.org
National Mission on Education through ICT
http://sakshat.ac.in
Ashwini R Patil
IIT Bombay
4 May 2012
I What is a function
I What is a function
I Syntax of a function
I What is a function
I Syntax of a function
I Significance of return statement
I What is a function
I Syntax of a function
I Significance of return statement
I Through examples
I What is a function
I Syntax of a function
I Significance of return statement
I Through examples
I Some common errors and their solutions
I Ubuntu OS v. 11.10
I Ubuntu OS v. 11.10
I gcc and g++ Compiler v. 4.6.1
I Syntax
I Syntax
I ret-type fun-name(parameters)
I Syntax
I ret-type fun-name(parameters)
I Syntax
I ret-type fun-name(parameters)
OR
I Syntax
I ret-type fun-name(parameters)
OR
I ret-type fun-name( )
I Function
I Syntax of function
I Function without arguments
I eg. void add()
I Function with arguements
I eg. int add(int a, int b)
tutorials
I Gives certificates to those who pass an
online test
I For more details, please write to
contact@spoken-tutorial.org