I am having problems with the code in C; I cannot display numbers using the write() function; here is the code
#include char fy(char c) { write(1, & c, 1); } int main(void) { // your code goes here int z = 0; int n = 9; while (z <= n) { fy(z); z++; } } comes out: a few obscure characters through printf() impossible. It is necessary only through write() what is the problem?
and how can i fix it?