Skip to main content

#Advantage of function.

                   

To define user defined function in our program file at the top of the main() function or below of the  main function.It can't be defined in the body of main function.
user defined function can be written in to a saperate file also.
syntax:-
datatype function name (argument with data type)
{
   statement;
...................
.................
.................
return(exp);
}

:- Were datatype of a function depends up on the datatype of return value by the function.
:-The rule of function name is same as the rule of variable name.
:-Argument is also called parameter.The variable name or name are declared with in the paranthesis() of a function is called arguments.

Note :- If a function doesn't return any function the data type of function is void(null datatype).
In c language it is optimal.

Comments

Post a Comment

Popular posts from this blog

Math notes

Supremum   math Logical math Recurrence Relation  

Dairy 20/05/2025

Abhi Raat ke 11:26 ho rha hai aur mai Aaj ka pura din ka diary likhne ja rha hu. Aaj Mera MCA ka last din tha aur mere liye sbse khusi ki baat thi ki ess moment pe mere papa bhi mere sath the. Aaj unka 11::45 pm pe train hai to wo chle jaenge. Aaj Subah jagte hi papa se mile aur mera din ka suruwat hi bhut acha huaa. Mai aur Papa Nasta sath me kiye aur fir mai apne Major project external viva exam ke liye gya college waha pe sir mere se phle normally talk kiye. Jaise hi mai exam ke room me enter Kiya to Maine sir se kaha sir  maine internship applore technology se ki hai fir sir se mere se puchhe ki Delhi me kaha rhte ho aur company noida hai to noida hi shift ho jate maine kaha sir hmara Jims me June hai esliye abhi nhi shift kar paya fir unhone Jims hostel ke khane ke bare me puchha ki quality kya hai maine kaha shi hai sub and then project ke bare me sequence diagram ke bare me puchhe maine ans kiya fir sir bole ki tumhare project ke according AI kaise therapy kar skta hai to ma...

React Js interview questions