Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Following is the source code of a simple C + + program. It contains a user - defined function demoFunction ( ) . In the
Following is the source code of a simple C program. It contains a userdefined function demoFunction In the userdefined function, two variables an and b are declared and initialized by x and y where x and y are not variables, they represent two integers. In main the function demoFunction is called twice.
#include
using namespace std;
int demoFunctionvoid
static int ax;
int by;
a;
b;
return a;
int main
int m n;
mdemoFunction;
ndemoFunction;
return ;
Select the correct statement from the followings:
Group of answer choices
The values of m and n will be different
The values of m and n will be the same
The value of n will be x
The value of m will be x
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started