1.

What happens when zero flag is used with left justification?(a) data is padded with zeros(b) zero flag is ignored(c) data is padded with blank spaces(d) will give errorThis question was posed to me by my college professor while I was bunking the class.My doubt is from printf in section Input and Output in C of C

Answer»

The correct choice is (b) zero flag is ignored

The BEST explanation: Zero flag is not CONSIDERED when used with left justification because ADDING zeros after a number changes its value.



Discussion

No Comment Found

Related InterviewSolutions