write a addition of two no. program with out using
printf,scanf,puts .
Answer Posted / sayyedibrahim
#include <stdio.h>
void putint(int x);
int main(void)
{
puts("[output]");
putint(13725);
putchar('\n');
putint(5500);
putchar('\n');
return 0;
}
void putint(int x)
{
if (x)
{
putint(x / 10);
putchar('0' + x % 10);
}
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
What is 1d array in c?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
How are pointers declared in c?
Why we write conio h in c?
Which is best linux os?
What is main function in c?
What are loops c?
What is the deal on sprintf_s return value?
What are the usage of pointer in c?
What is context in c?
Is main is a keyword in c?
Explain what are global variables and explain how do you declare them?
What is the difference between exit() and _exit() function in c?
Can stdout be forced to print somewhere other than the screen?
Tell us something about keyword 'auto'.