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

#&#8206;include&#8236;<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

2 Answers   Facebook,


What is the diffrent between while and do while statement ?

6 Answers  


What are the different types of data structures in c?

0 Answers  


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.

1 Answers   Wipro,






What is hungarian notation? Is it worthwhile?

0 Answers  


Explain what are reserved words?

0 Answers  


What are enums in c?

0 Answers  


What is sizeof array in c?

0 Answers  


main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }

3 Answers   CSC,


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

0 Answers   HP,


C,c++, Java is all are structural oriented or procedure oriented language..?

6 Answers  


Categories