Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Forum » x-Forum » Question

doubt

In some programs, We defined n=temp; where to keep the value of n remain unchanged and used it later as temp but i have just saw few programs where we defined some other value, Let say K=prnfunction(n), So now if we printf( %d, k ), it will take the value from prnfunction(n) ? can anyone explain, What s the difference and how to know that

Posted by neeraj019 2019-04-28 13:20:28

K=prnfunction(n)

Here prnfunction(n) will return some value, which is assigned to K. prnfunction(n) will do some operation and return some value, and to use the value we store it in some variable like K here. let me know if you have any questions.

C++ user image Admin posted 2019-04-28 13:27:07

Please login to comment

Log In


Ask New Question