Check out example codes for "Print the number 0 using write()". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>

int main(void) {
    int n = 123;

    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');
    n /= 10;
    putchar((n % 10) + '0');

    return 0;
}

Learn ReactJs, React Native from akashmittal.com