CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
using namespace std;
struct window {
int width;
int height;
};
void create (window *w,int x,int y){
w->width = x;
w->height = y;
}
int main (){
window win;
create (&win,800,600);
cout<< win.width <<endl;
cout <<win.height <<endl;
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run