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

How do you generate random numbers in C?

0 Answers  


What is New modifiers?

0 Answers   NA,


print the palindrome numbers in between 0 to n

1 Answers  


Write a C program to fill a rectangle using window scrolling

1 Answers  


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


How would you obtain the current time and difference between two times?

0 Answers   TISL,


what do the 'c' and 'v' in argc and argv stand for?

0 Answers   TISL,


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

0 Answers  


what is the difference between c and java?

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

5 Answers   ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,


What are the different types of data structures in c?

0 Answers  


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


Categories