sizeof Operator

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€84.76
List Price:  €118.67
You save:  €33.90
£74
List Price:  £103.61
You save:  £29.60
CA$138.24
List Price:  CA$193.54
You save:  CA$55.30
A$151.32
List Price:  A$211.85
You save:  A$60.53
S$128.31
List Price:  S$179.64
You save:  S$51.33
HK$777.41
List Price:  HK$1,088.41
You save:  HK$310.99
CHF 79.21
List Price:  CHF 110.90
You save:  CHF 31.68
NOK kr988.32
List Price:  NOK kr1,383.69
You save:  NOK kr395.36
DKK kr632.71
List Price:  DKK kr885.82
You save:  DKK kr253.11
NZ$170.43
List Price:  NZ$238.61
You save:  NZ$68.17
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,169.36
List Price:  ৳17,037.59
You save:  ৳4,868.23
₹8,872.66
List Price:  ₹12,422.08
You save:  ₹3,549.42
RM419.80
List Price:  RM587.74
You save:  RM167.94
₦148,863.11
List Price:  ₦208,414.31
You save:  ₦59,551.20
₨28,147.18
List Price:  ₨39,407.18
You save:  ₨11,260
฿3,183.83
List Price:  ฿4,457.49
You save:  ฿1,273.66
₺4,141.13
List Price:  ₺5,797.74
You save:  ₺1,656.61
B$533.72
List Price:  B$747.23
You save:  B$213.51
R1,730.46
List Price:  R2,422.71
You save:  R692.25
Лв165.75
List Price:  Лв232.06
You save:  Лв66.30
₩139,371.32
List Price:  ₩195,125.42
You save:  ₩55,754.10
₪334.57
List Price:  ₪468.41
You save:  ₪133.84
₱5,718.52
List Price:  ₱8,006.16
You save:  ₱2,287.63
¥14,770.26
List Price:  ¥20,678.96
You save:  ¥5,908.69
MX$1,835.53
List Price:  MX$2,569.82
You save:  MX$734.28
QR363.96
List Price:  QR509.56
You save:  QR145.60
P1,328.66
List Price:  P1,860.17
You save:  P531.51
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,819.40
List Price:  E£6,747.36
You save:  E£1,927.95
ብር14,375.58
List Price:  ብር20,126.39
You save:  ብር5,750.80
Kz91,186.39
List Price:  Kz127,664.59
You save:  Kz36,478.20
CLP$95,540.44
List Price:  CLP$133,760.44
You save:  CLP$38,220
CN¥710.96
List Price:  CN¥995.38
You save:  CN¥284.41
RD$6,193.55
List Price:  RD$8,671.22
You save:  RD$2,477.67
DA12,953.39
List Price:  DA18,135.27
You save:  DA5,181.87
FJ$224.90
List Price:  FJ$314.87
You save:  FJ$89.97
Q765.57
List Price:  Q1,071.83
You save:  Q306.26
GY$20,909.67
List Price:  GY$29,274.37
You save:  GY$8,364.70
ISK kr12,087.79
List Price:  ISK kr16,923.39
You save:  ISK kr4,835.60
DH902.35
List Price:  DH1,263.32
You save:  DH360.97
L1,663.87
List Price:  L2,329.49
You save:  L665.61
ден5,222.75
List Price:  ден7,312.06
You save:  ден2,089.31
MOP$800.11
List Price:  MOP$1,120.19
You save:  MOP$320.07
N$1,729.87
List Price:  N$2,421.88
You save:  N$692.01
C$3,674.98
List Price:  C$5,145.12
You save:  C$1,470.14
रु14,112.44
List Price:  रु19,757.99
You save:  रु5,645.54
S/348.93
List Price:  S/488.52
You save:  S/139.58
K422.40
List Price:  K591.37
You save:  K168.97
SAR375.04
List Price:  SAR525.07
You save:  SAR150.03
ZK2,376.41
List Price:  ZK3,327.07
You save:  ZK950.65
L430.44
List Price:  L602.64
You save:  L172.19
Kč2,055.80
List Price:  Kč2,878.21
You save:  Kč822.40
Ft32,960.42
List Price:  Ft46,145.91
You save:  Ft13,185.48
SEK kr930.38
List Price:  SEK kr1,302.57
You save:  SEK kr372.19
ARS$141,012.70
List Price:  ARS$197,423.42
You save:  ARS$56,410.72
Bs692.15
List Price:  Bs969.03
You save:  Bs276.88
COP$385,773.15
List Price:  COP$540,097.84
You save:  COP$154,324.69
₡50,384.05
List Price:  ₡70,539.69
You save:  ₡20,155.63
L2,618.47
List Price:  L3,665.96
You save:  L1,047.49
₲711,742.94
List Price:  ₲996,468.59
You save:  ₲284,725.65
$U3,981.91
List Price:  $U5,574.83
You save:  $U1,592.92
zł360.80
List Price:  zł505.13
You save:  zł144.33
Already have an account? Log In

Transcript

Hello, welcome to the 19th tutorial in the c++ programming series, and in this poll, we're going to be looking at the size of operator. The size of operator takes a single parameter, which is either a type like a date, type, float, Boolean, what have you or a variable and we'll return the size of that type or variable, whatever you specify. And it's an extremely simple thing to do. So let's go ahead and open up our project and just show you how to implement it. In all honesty, I never really use this feature in my in my application, but it's something that I was taught so I think that you should learn as well and or resources that you may come across books or online will teach you as well. Always don't create a variable called flow.

I'm gonna assign the value or size of I'm going to collect Inside float, so we're going to get the value of float in terms of in terms of bytes the datatype float. And let's just print this alone let's put exia where we get four so it is for both Alice's changes to it in the media for this and it's for both well that's current Boolean is 1.8 here on reflect pre double is longer than a regular flow because he had more procedural and we have yet let's just quickly do a number mean just a variable so and then a y equals 78. was gonna put y here a brings back four because we because it is an interview because one number you have you We'll take up that number of bytes. That's it for this tutorial. In the next part, we're going to be looking at operator precedence, something that is extremely important with programming and in mass in general mass programming is slightly different.

So just bear that in mind. If you have any questions feel free to message us or support. So in our system, the coda UK, the email will be in the description you can comment on this video historically, messages or via YouTube, while they're calling for source code will also be in the description. As usual. Thank you for watching and I hope you have a nice day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.