Ends in 0d:00h:00m:00s

Buy 1 year, 🎁 Gift 1 year — completely FREE

Split the cost with a friend. You both get 12 months for $99.

Start FREE trial
Background Image

Buy 1 year, Gift 1 year — completely FREE

Start FREE trial
Riu
last year
Riucountry asked

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

Abhilekh Gautam
Expert
last year

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.