Default Values – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2015-01A #JAVA#3926    siteicon   siteicon  

Problem Statement - Default Values

What are the default values of the primitive datatypes int and float?

Solution

TC++ #3926

The default value of –

int – 0   ( 0 in 32 bit size)

float – 0.0f  (0.0 in 32 bit size)


Share

sunmitra| Created: 22-Mar-2018 | Updated: 16-Apr-2019|ICSE2015






Back