write a addition of two no. program with out using
printf,scanf,puts .

Answers were Sorted based on User's Feedback



write a addition of two no. program with out using printf,scanf,puts ...

Answer / vaibhav

#define PRINT printf("%d",a+b)
void main()
{
int a=8,b=7;
PRINT;
getch();
}

Is This Answer Correct ?    30 Yes 14 No

write a addition of two no. program with out using printf,scanf,puts ...

Answer / 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

write a addition of two no. program with out using printf,scanf,puts ...

Answer / dally

#include<stdio.h>
int main()
{
int a=2,b=3,sum =0;
while(a--){
sum = sum+b;
puts(sum);

}

Is This Answer Correct ?    14 Yes 12 No

write a addition of two no. program with out using printf,scanf,puts ...

Answer / honey

void main()
{
char a,;
int i;
for(i=0;i<5;i++)
{
a=getchar();
}
for(i=0;i<5;i++)
{
putchar(a)l
}
}

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More C Interview Questions

what is the difference between global variable & static variable declared out side all the function in the file.

2 Answers  


Tell me what are bitwise shift operators?

0 Answers  


What is difference between far and near pointers?

0 Answers  


Difference between exit() and _exit() function?

0 Answers  


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  






What is string length in c?

0 Answers  


What is the difference between CV and Resume ?

2 Answers  


what is the most appropriate way to write a multi-statement macro?

1 Answers  


what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }

9 Answers  


difference between spiral and waterfall model

1 Answers  


plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 Answers  


how to find out the reverse number of a digit if it is input through the keyboard?

6 Answers  


Categories