How many minimum number of functions are need to be presented in c++?
What is the scope of the variable declared in the user definied function?
What is the output of this program?
1. #include2. using namespace std; 3. void fun(int x, int y) 4. { 5. x = 20; 6. y = 10; 7. } 8. int main() 9. { 10. int x = 10; 11. fun(x, x); 12. cout << x; 13. return 0; 14. }
What is the output of this program?
1. #include2. using namespace std; 3. void mani() 4. void mani() 5. { 6. cout<<"hai"; 7. } 8. int main() 9. { 10. mani(); 11. return 0; 12. }
Which is more effective while calling the functions?