Use the %X modifier of printf.
Code Example:#include int main(void) { unsigned int iMyNumber = 255; printf("The number %u interpreted as hexadecimal is %X.\n", iMyNumber, iMyNumber); return 0; }i want to convert 157.48 into integar
-5
157.48 cm = 157 cm (rounding down) or 158 cm (rounding up) 157.48 cm = 62 inches (rounding up) or 61 inches (rounding down)
no. integers are 0 1 2 3 4 5 6 etc and their negatives
Start counting from ' 1 '. The first number you name that is a member of the set is the smallest integer in the set.
an integer is a whole number so any fraction or decimal is a non-integer. for example 4 is an integar but 4.865 or 8/32 re not integars
Yes, integers are all whole, negative and positive numbers, including 0.