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.