write a addition of two no. program with out using
printf,scanf,puts .
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
what is the difference between global variable & static variable declared out side all the function in the file.
Tell me what are bitwise shift operators?
What is difference between far and near pointers?
Difference between exit() and _exit() function?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
What is string length in c?
What is the difference between CV and Resume ?
what is the most appropriate way to write a multi-statement macro?
what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }
difference between spiral and waterfall model
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.
how to find out the reverse number of a digit if it is input through the keyboard?