Important
1)Inlinefunction:
inline int function ( )=replace the whole function in main function for reduce complexity i.e remove return and call function but it work general function not user define function.
It is a request from compiler.
2)Static Variable(static int) =work only one time ,it is use for only initialisation.
3)Default value= a value which is used by function if user does not give value
Ex :-int function (int a,int b=4)
Call function ( x ) then automatically fnctn use b=4 in rslt and
We provide function (x ,y ) then use y in place b(4).
Uses: 1) use to different values for different purposes without assign two value of y.
4) Recursion: call again same function in function
5)to_string(int) = It convert int into string.
Comments
Post a Comment
If you have any doubt ,let me know