Print the number 0 using write()
#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;
}
Also in C:
- what is i686 vs x86_64
- how to make infinite loop in c
- how to rebasde
- arduino client.read
- vector aleatorio sin repetir
- arduino server read
- int to float c
- warning: function returns address of local variable [-Wreturn-local-addr]
- sleep function in c
- how to make services in linux
- ordenar un vector
- scanf read line
- 32bit or 64bit
- how to input a string into a char array cpp
- pointer basics
- vbl share price
- c find last element in array
- c allocate array
- bella ciao lyrics
- oneplus nord
- fopen c
- how to print something out to the console c
- pygame detect click
- Print the number 0 using write()