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 |
Explain what is a static function?
code for quick sort?
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
Diff between for loop and while loop?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
What's wrong with "char *p; *p = malloc(10);"?
What is putchar() function?
Difference between strcpy() and memcpy() function?
What is quick sort in c?
What is the advantage of c?
Explain what does a function declared as pascal do differently?
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?