Use the C programming language to write code that proclaims and sets a double, int, and char. Afterward, proclaim and set a pointer to the double, int, and char. The code must print the inscription of, and value stored in, and the memory size (in bytes) of all six variables. The "0x%x" formatting specifier outputs inscriptions in hexadecimal.
Use the C
SAMPLE OUTPUT:
Char ___ 's inscription is 0x___
Int ___'s inscription is 0x___
Double ___'s inscription is 0x___
Char* ___'s inscription is 0x___
Int* ___'s inscription is 0x___
Double* ___'s inscription is 0x___
Char ___ 's value is ___
Int ___'s value is ___
Double ___'s value is ___
Char* ___'s value is 0x___
Int* ___'s value is 0x___
Double* ___'s value is 0x___
Char ___ 's size is ___ bytes
Int ___'s size is ___ bytes
Double ___'s size is ___ bytes
Char* ___'s size is ___ bytes
Int* ___'s size is ___ bytes
Double* ___'s size is ___ bytes
Step by step
Solved in 3 steps with 1 images