0d: 00h: 00m: 00s

🎁 Get 3 extra months of learning — completely FREE

That's 90 extra days to master new skills, build more projects, and land your dream job.

Become a PRO
Background Image

🎁 Get 3 extra months of learning completely FREE

Become a PRO
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.