Hi
I am having difficulty to understand the declaration of different type of function . I am confuse on selection . when do i need specific one . I want to understand use of return type , argument and parameters in c programming
This is basic structure in c
I understand meaning of this function No return Type and no Argument
What does function do ? when do we use this type of function in program ? what happen when we exit function ? (it does not return any value and does not pass any argument so what does it do )
I understand meaning of this function No return Type and one Argument
we pass the value of i variable
what does function do ? when do we use this type of function in program ? what happen when we exit function ?
(it does not return any value so is it only use to pass the value of this variable )
I am having difficulty to understand the declaration of different type of function . I am confuse on selection . when do i need specific one . I want to understand use of return type , argument and parameters in c programming
This is basic structure in c
C:
<return-type> function_Name( <parameter-list> )
{
<statements>
return <expression of type return-type>;
}
I understand meaning of this function No return Type and no Argument
C:
void function_Name( void)
{
statements ;
}
What does function do ? when do we use this type of function in program ? what happen when we exit function ? (it does not return any value and does not pass any argument so what does it do )
I understand meaning of this function No return Type and one Argument
C:
void function_Name( unsigned i )
{
statements ;
}
what does function do ? when do we use this type of function in program ? what happen when we exit function ?
(it does not return any value so is it only use to pass the value of this variable )
Last edited: