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 a newline escape sequence?
Write a progarm to find the length of string using switch case?
Can we use visual studio for c?
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
Which node is more powerful and can handle local information processing or graphics processing?
What is string function c?
How can I get the current date or time of day in a c program?
Explain what is operator promotion?
What are the modifiers available in c programming language?
Disadvantages of C language.
Describe the difference between = and == symbols in c programming?
What is the purpose of sprintf?
What is the condition that is applied with ?: Operator?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What are lookup tables in c?