c programming itoa() example

[ad_1]

c programming itoa() example
#include 
#include 
#include 
 
int main()
{
    int a=54325;
    char buffer[20];
    itoa(a,buffer,2);   // here 2 means binary
    printf("Binary value =
 
    itoa(a,buffer,10);   // here 10 means decimal
    printf("Decimal value =
 
    itoa(a,buffer,16);   // here 16 means Hexadecimal
    printf("Hexadecimal value =
    return 0;
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com