March 4th, 2010
Call by reference – in C language
This is all about C programming language nothing more than that. I read a book contains all C stuffs in call by reference they simply mentioned we can return more than a value by call by reference method. (I don’t want to explain what is calling by reference). They not mentioning how can we able to pass too many values to the main function with write any return statement in the main. This cause an amateur programmer understands this in a wrong way they may not use return in ordinary programs and search the value in main block. The fact is we are passing the address of the real arguments if the values are changed regarding the address that will reflect in main program that the illusion we get the more than one value are returned to main. The real fact is only control come back to main no values are passes between the two programming blocks.