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
How do you print only part of a string?
What does p mean in physics?
What is the difference between #include
What are file streams?
What is a far pointer in c?
Why is this loop always executing once?
How to declare a variable?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the advantage of c?
what are non standard function in c
Is malloc memset faster than calloc?
What does the c preprocessor do?
What is a sequential access file?
When should the const modifier be used?
Explain how does free() know explain how much memory to release?