append numbers C Programming -


If I have the number 88 then how do I finally add 00 and change it to 8800? The bitwet shift is the only way, I can think of doing this but it does not work. This completely changes the number

Changes towards bit used to multiply with powers of only two Can be done, you just want to multiply. Just run:

  printf ("% d", 88 * 100);   

To print 8800.

If you want to do what you really want to do is add 00 to the end of the numbers, you can do this instead:

  printf ("% d00", 88) ;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -