Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (maram):

Following is a complete program with a function. What will appear on the screen when you run this program? #include using namespace std; int A_function(int a); int main() { int n=10; cout<

OpenStudy (anonymous):

the value of n mapping in a when we call the function A_function(n). hence in the definition of the function, when n=10 then a=10 then it will go in else condition.and return 20. when n=15 then a=15 then it will go in if condition hence it will return 15.. hence output will be 20 and 15..

OpenStudy (maram):

thank you

OpenStudy (maram):

I have another question

OpenStudy (anonymous):

welcome maram,post another question...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!