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 are bitwise shift operators in c programming?
What is new line escape sequence?
Differentiate between a for loop and a while loop? What are it uses?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Explain what does a function declared as pascal do differently?
What are the key features in c programming language?
How can I trap or ignore keyboard interrupts like control-c?
Explain modulus operator. What are the restrictions of a modulus operator?
What is difference between structure and union in c?
What does sizeof int return?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
How can you check to see whether a symbol is defined?
Why can’t we compare structures?
What is variable initialization and why is it important?
a value that does not change during program execution a) variabe b) argument c) parameter d) none