Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are bitwise shift operators in c programming?

1040


What is new line escape sequence?

1269


Differentiate between a for loop and a while loop? What are it uses?

1135


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3023


Explain what does a function declared as pascal do differently?

1216


What are the key features in c programming language?

1008


How can I trap or ignore keyboard interrupts like control-c?

1023


Explain modulus operator. What are the restrictions of a modulus operator?

972


What is difference between structure and union in c?

926


What does sizeof int return?

1027


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.

1707


How can you check to see whether a symbol is defined?

1050


Why can’t we compare structures?

1229


What is variable initialization and why is it important?

1167


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1185