Question: / / functions prototypes static int x = 1 ; int y = x * 2 ; int main ( ) { vector vec 1
functions prototypes
static int x ;
int y x ;
int main
vector vec;
vector vec;
vecswapvec;
int ptr &vec;
y ptr ;
t;
t;
t;
t;
t;
return ;
void t
cout x: x y: y endl;
y ;
x ;
void t
int& x y;
x ::x;
cout x: x y: y endl;
void t
int y x;
static int x ;
cout x: x y: y endl;
x y;
void t
int y x ::x;
int& z ::y;
z ;
cout x: x z y: y endl;
This program outputs lines. What are they?
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
