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 are you see during placement time in the student.
0 Answers Goldman Sachs, TCS, Tech Solutions,
What does void main return?
What is volatile
How to add two numbers without using arithmetic operators?
18 Answers College School Exams Tests, e track, Infosys, Pan Parag, Sapient, TCS,
What is meant by recursion?
WHAT IS PRE POSSESSORS?
how to copy a string without using c function
What is the difference between null pointer and wild pointer?
What is the explanation for cyclic nature of data types in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What are the types of pointers in c?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }