-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.cpp
More file actions
78 lines (62 loc) · 1.87 KB
/
Copy pathtest2.cpp
File metadata and controls
78 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// To me, the one thing that is most exciting is working to solve challenging problems that help society in one way or the other plus the work environment and the people around me are always my priority. In both ways, Nagarro is one of the best companies to start my exciting software journey
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define mod 1000000007
#define inf 1e18
#define pb emplace_back
#define vi vector<ll>
#define vii vector<vector<ll>>
#define vs vector<string>
#define pii pair<ll,ll>
#define vp vector<pair<ll,ll>>
#define mp make_pair
#define pq_max priority_queue<ll>
#define pq_min priority_queue<ll,vi,greater<ll> >
#define ff first
#define ss second
#define mid(l,r) (l+(r-l)/2)
#define loop(i,a,b) for(int i=(a);i<(b);i++)
#define revloop(i,a,b) for(int i=(a);i>=(b);i--)
#define printarr(arr,a,b) for(int z=(a);z<=(b);z++) cout<<(arr[z])<<" ";cout<<endl;
void io_file() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("/home/parvesh/Desktop/Codes/io_files/input.txt","r", stdin);
freopen("/home/parvesh/Desktop/Codes/io_files/output.txt","w", stdout);
freopen("/home/parvesh/Desktop/Codes/io_files/error.txt","w", stderr);
#endif
}
class Rectangle {
public:
int length;
int breadth;
int area() {
return length*breadth;
}
int perimeter() {
return 2*(length+breadth);
}
};
void code_here() {
int a = 10;
cout << a << "\n";
cout << &a << "\n";
char c = 'z';
cout << c << "\n";
int *b;
b = &a;
cout << b << "\n";
cout << *b << "\n";
}
int main() {
clock_t start = clock();
io_file();
code_here();
clock_t end = clock();
cerr<<endl<<endl<<"Executed In: "<<double(end - start) / CLOCKS_PER_SEC*1000<<" ms";
return 0;
}