C language - Class 23 : Functions in C programming(User defined & library defined function) - Part 1

preview_player
Показать описание
Functions in programming language:
In C, a large program can be divided into a number of smaller, complete and independent subprograms.
A function is enclosed within { }.
These subprograms are unique, identifiable and for a special purpose.
And each sub program is called a module or a function.
This task is called modularization.
There are two categories in functions :
1. User defined Functions
User defined functions are not available in C Library.
User OR we create the functions as and when we need them.

2. Library Functions
Library functions are those which are available in C std. Library.
These are already defined and run by the programmers.
Ex: sqrt( ), pow( ), strupr( ), printf( ), scanf( ) etc..

Types of the Functions

Execution of the Functions

Example Programs
void main( )
{
clrscr ( ) ;
printf (“Welcome to Ankpro Traning\n”) ;
getch ( ) ;
}

void welcome( );

void main( )
{
clrscr ( ) ;
welcome( );
getch ( ) ;
}

void welcome( )
{
printf (“Welcome to Ankpro Traning\n”) ;
return 0;
}

Syntax of function
What is function
What is method
Function definition in C
What is argument
What is return type
What is business logic
Types of functions
Need of function
Use of function or method
Function definition
Function calling
Need of calling function
Classification of functions
No arguments and No return values function
With arguments and No return values function
With arguments and With return values function
No arguments and With return values function
Passing parameters to function
What is void in C language
void keyword
How function return values

ankpro
ankpro training
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
C
C++
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
Strings
Structures
Enums
Functions
Рекомендации по теме
visit shbcf.ru