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
What is keyword in c?
What is the process of writing the null pointer?
Can you explain the four storage classes in C?
Why do we use static in c?
How is a macro different from a function?
How do I use strcmp?
How can I insert or delete a line (or record) in the middle of a file?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Explain how to reverse singly link list.
Write the Program to reverse a string using pointers.
What is data structure in c and its types?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Why can't I perform arithmetic on a void* pointer?
What is the difference between a free-standing and a hosted environment?
If fflush wont work, what can I use to flush input?