C++ Programming
SIZES MCQs
Total Questions : 10
Character is 1 byte, integer 4 bytes and float 4 bytes.
The a as a integer will be converted to float while calculating the size. The value of any variable doesn’t modify inside sizeof operator. Hence value of variable a will remain 5.
Output:
$ g++ size3.cpp
$ a.out
4 5
In this program, integer is converted into float. Therefore the result of num1 and num2 is float. And it
is returning the size of the float.
Output:
$ g++ size2.cpp
$ a.out
4
The size of the double data type is 8.
$ g++ size1.cpp
$ a.out
8
The sum of three numbers are belongs to different number systems, so the result is typecasted into integer.
Output:
$ g++ size.cpp
$ a.out
4
sizeof(char) <= sizeof(wchar_t) <= sizeof(long)
None.
The limit header holds the details of the machine dependent details.
None.
The sizeof operator gives the size of the object or type.
Recent Questions
Q. The Frequency Of Oscillation At Compared To Earth Will Be
Q. The Formula In Which Σ(x-x̅)² Is Divided By One Less ....
Q. If....
Q. What Is The National Sport Of Canada(in Winter And Summer)?
Q. A Well-oiled Machinery For The Creation And Diffusion Of Fad....
Q. Considering All 2-digit Natural Numbers, How Many Values Of ....
Q. In A Gas Welding Of Mild Steel Using An Oxyacetylene Flame, ....
Q. Which One Of Following Fuels Is Used By Slow Thermal Nuclear....
Q. Answer The Questions On The Basis Of The Following Informat....
Q. Who Discovered The Path Of Circulation Of Blood In The Human....
Q. __________ Is Produced Using Molasses As The Starting Raw Ma....
Q. &n....
Q. `3....
Q. The Ratio Of Mass Concentration Of Species A To The Total M....
Q. Which Pesticide Killed Many Other Organisms Instead Of Only ....
Q. Resolution Of A DVM Is Given By ____________
Q. Who Has Hinted At The Possible Community Transmission Of The....
Q. The Ability Of Money To Be Moved Easily Is Called:
Q. EXORBITANT
Q. An Inventory, Which Consists Of Partially Worked Goods Is Ca....