Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert integer 194 and floating-point number 2.5f into double type in C language? Just learning c++ won't be hungry, put him
How to convert integer 194 and floating-point number 2.5f into double type in C language? Just learning c++ won't be hungry, put him
With cast, a = (double) b; ? B is another type.

Adding different types of variables will make some changes to the data type, which is roughly as follows: character type->; Plastic surgery->; -> single precision real number type; Double precision real type, so 194+2.5= 196.5.

"\092" is a string of ***4 characters with a length of 4. As for the number of bytes occupied, it is related to your definition. It is defined that strings are different from string arrays, and the test length is strlen (str). Test bytes with sizeof(str)