Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
