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


Please Help Members By Posting Answers For Below Questions

What is a newline escape sequence?

663


Write a progarm to find the length of string using switch case?

1605


Can we use visual studio for c?

544


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1420


Which node is more powerful and can handle local information processing or graphics processing?

819






What is string function c?

561


How can I get the current date or time of day in a c program?

647


Explain what is operator promotion?

631


What are the modifiers available in c programming language?

732


Disadvantages of C language.

651


Describe the difference between = and == symbols in c programming?

773


What is the purpose of sprintf?

615


What is the condition that is applied with ?: Operator?

656


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

613


What are lookup tables in c?

548