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
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Why do some versions of toupper act strangely if given an upper-case letter?
When is the “void” keyword used in a function?
Is it possible to pass an entire structure to functions?
what are the facialities provided by you after the selection of the student.
What is equivalent to ++i+++j?
What's a good way to check for "close enough" floating-point equality?
What are the scope of static variables?
Explain what are reserved words?
how should functions be apportioned among source files?
What is echo in c programming?
hi send me sample aptitude papers of cts?
When do we get logical errors?
What is main () in c language?
Write a program for Overriding.