+ 1
5th Dec 2019, 6:48 AM
M.Gavili
M.Gavili - avatar
6 ответов
+ 1
It means you are calling the function f(char char1, char char2) from main(). Edit: Inside main you need not pass the argument type so you need not specify whether it is char or int while passing. That is why a,b is passed and are accepted by the function. But your function definition should have the same type of arguments you have passed inside main().
5th Dec 2019, 6:52 AM
Avinesh
Avinesh - avatar
+ 1
Thanks dude.. And f(a,b) is calling by reference or value ??
5th Dec 2019, 8:50 AM
M.Gavili
M.Gavili - avatar
+ 1
It is calling by value because a and b hold a value. If you say f(&a, &b) then it is calling by reference since you are passing the address of a and b and not the actual value.
5th Dec 2019, 8:51 AM
Avinesh
Avinesh - avatar
+ 1
Thank you so much🙏
5th Dec 2019, 8:52 AM
M.Gavili
M.Gavili - avatar
+ 1
You're welcome M.Gavili
5th Dec 2019, 8:53 AM
Avinesh
Avinesh - avatar
0
And would you please tell me .. tell me how I can omit one in between numbers in a function ?? Sth like this .. 7423 → 72
5th Dec 2019, 8:55 AM
M.Gavili
M.Gavili - avatar