• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printf examlab test question 35

 
Fritz Guerilus
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question on the following code:

The answer is:
7.00settrue.
I thought the answer would be:
07.00settrue
based:
on the flag being 0
and
the width being 2

But I compiled/executed the code and the answer is:
7.00settrue.

I know a there is a thread in the forum discussing the this question, but I can't find it again when I do a search.
So I decided to create a new one.

My question:
what happened to the flag & width ("%02...") portion of the format specifier?

-Thank You
 
Fritz Guerilus
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can the admins please delete this post?
I accidently put it in the wrong forum.
I found what I was looking for in the correct forum and I don't need it anymore.
-Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic