Add

Showing posts with label float. Show all posts
Showing posts with label float. Show all posts

Friday, November 16, 2018

char and float


char

•It is used to save single character
•Like a x b c t / [ ] = etc
•Character that is assigned should be enclosed in   inverted single commas like  ‘    ’.

float

•Float is used to store fractional values.
•Its size depend on compiler .
•Usually it is 2 byte.
•Fractional part may be small or long. so we use  float(small factional size), double (medium fractional size) and long double (long fractional size) for it.