How to Print function message without printf in C language?
#include<stdio.h> #include<conio.h> void print_int(int num){ int a = num; if (num < 0) { putc('-'); num = -num; } if (num > 9) print_int(num/10); putc('0'+ (a%10)); getch(); } }
Computer Science Tutorials
#include<stdio.h> #include<conio.h> void print_int(int num){ int a = num; if (num < 0) { putc('-'); num = -num; } if (num > 9) print_int(num/10); putc('0'+ (a%10)); getch(); } }