Riu
2 months ago
Riucountry asked

For integer, the specifier is %d, what about the other types of variables?

Abhilekh Gautam
Expert
2 months ago

For integers, the format specifier is %d. For other types:

  • float: %f
  • double: %lf
  • char: %c

You’ll learn more about these and how to use them later in the course, so don’t worry about it for now.

Keep going, you’re doing great!

C
This question was asked as part of the Learn C Programming course.