public static void Input(string C)
static void Main(string args)
string B = "EFGH";
Output : ABCD
1)Looking at the example it shows its call by value becoz , if we use call by refrence then we have to use ref keyword which is not in this case so its call by value according me.
2)But then, if it is call by value it should print "EFGH", but rather its printing "ABCD" of input method .
Why plz explain..
Thnx in Advance
its call by value. but the value which is passed to fun is override in function of class so the output C is a formal argument to fun, and value of B comes in C after that c is set to ABCD. So, B is actual argument n c Formal.. We can give any name to formal argument. -Thanks