%#d %#o %#x
what this # keyword do in this conversion
%#d %#o %#x
what this # keyword do in this conversion
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
let i=100;
pf(“%x\n”,i)=64 //hexadecimal number
pf(“%#x\n”,i)=0*64
pf(“%o\n”,i)=100 //octal number
pf(“%#o\n”,i)=0100
‘#’ is used to represent number …for hexadecimal 0*64 and for octal 0100
0*64 =its a hexadecimal number
0100=octal number
and in case %#d
pf(%d\n”,i)=100
pf(%#d\n”,i)=100
it means a integer number..
thnx hemant ..