Discussion :: Input / Output - True / False Questions (Q.No.5)
In a call to printf() function the format specifier %b can be used to print binary equivalent of an integer.
Answer: Option B
There is no format specifier named %b in c.
|Abhishek Pateria said: (May 27, 2011)|
|What is format specifier for printing the bits or bytes?|
|Kalpana said: (Sep 13, 2013)|
|Is there format specifier named %b in c++?
Can any please answer?
|Ramyakrishna said: (Apr 17, 2014)|
|What is the meaning for %b?|
|Ananas said: (Jul 30, 2015)|
|Use the answer in this question on stack overflow to convert to binary.|
|Pranav said: (Sep 14, 2016)|
|There is format specifier named as %b in c language, it can be used for printing backspace in printf().|
|Pushpa said: (Oct 9, 2017)|
|Yes @Pranav there is \b escape character is used for backspace in printf but, there is no %b formate specifier for converting integer value to binary.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.