• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 2

printf("%d\t%s\t%4.2f\n", cs1.id, cs1.title, cs1.hours);

here, 4.2f refers what?

cstructstructure
11th Jun 2019, 4:54 AM
krishna kumari
krishna kumari - avatar
1 Answer
+ 3
It means at least for digits before the '.' and exactly 2 decimal places. So 5.0 would be 0005.00 and 12345.12345 would be 12345.12
11th Jun 2019, 5:22 AM
Vlad Serbu
Vlad Serbu - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Functions in python
2 Votes
How to make a playground
1 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))[ by New logics algebraic way ]?
1 Votes
I need advice
1 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
𝙵𝙸𝙽𝙳 𝚃𝙷𝙴 𝙸𝙽𝙿𝚄𝚃 𝙾𝙵 𝚃𝙷𝙴 𝙿𝚁𝙾𝙶𝚁𝙰𝙼
1 Votes
Python
0 Votes
Can someone explain inline and block elements please
0 Votes
I am a beganer
0 Votes