How to add two numbers without using arithmetic operators?
Answer Posted / chirantan
//program to add two numbers without using + operator//
#include<stdio.h>
main()
{
int a,b,c;
printf("\n enter two numbers to add\n");
scanf("%d %d", &a,&b);
c=((a*a)-(b*b))/(a-b);
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Explain what are reserved words?
What are the types of data structures in c?
Difference between pass by reference and pass by value?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Where are some collections of useful code fragments and examples?
What is the difference between if else and switchstatement
Explain which function in c can be used to append a string to another string?
When should the register modifier be used? Does it really help?
Explain what is the concatenation operator?
how to write a c program to print list of fruits in alpabetical order?
find the sum of two matrices and WAP for it.
i want to know the procedure of qualcomm for getting a job through offcampus
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
How arrays can be passed to a user defined function
What is unary operator?