159k views
3 votes
Using conversion functions

Printf function - floating point numbers are represented by. There are two

a) %p
b) %f
c) %P
d) %F"

1 Answer

3 votes

Final answer:

The conversion functions used to represent floating point numbers in the Printf function are %p, %f, %d, and %F.

Step-by-step explanation:

The following conversion functions can be used in the Printf function to represent floating point numbers:

  • %p: represents a pointer
  • %f: represents a float
  • %d: represents an integer
  • %F: represents a float with uppercase E or F in scientific notation

For example, if you want to print a float variable x using the %f conversion function, you can use printf("%f", x);

User Melania
by
8.5k points