printf("Here is a decimal: %d, and here is a hex value: %h, and here is a float: %f", decVal, hexVal, floVal);
The %d is a place holder to output a decimal value, and you can find it after the terminating ". So decVal will print out in decimal the value in decVal. The same is true for %h, hexadecimal and hexvalue, and %f, float value, and floVal.
1 2 3 4
float floVal = 3.00;
int hexVal = 15;
int decVal = 10;
printf("Here is a decimal: %d, and here is a hex value: %h, and here is a float: %f.\n", decVal, hexVal, floVal);
This will produce the following:
Here is a decimal: 10, and here is a hex value: F, and here is a float: 3.00.