How to add two numbers without using arithmetic operators?
Answer Posted / jayanth kothapalli
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
Printf("Enter Two numbers:");
scanf("%d,%d",&a,&b);
c=-(-a-b);
printf("sum is = %d",c);
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Is a house a mass structure?
What is data types?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Under what circumstances does a name clash occur?
Who invented bcpl language?
What is a program flowchart and how does it help in writing a program?
How can type-insensitive macros be created?
Explain how can I convert a string to a number?
Why can arithmetic operations not be performed on void pointers?
difference between Low, Middle, High Level languages in c ?
What does volatile do?
Why is #define used?
Does c have an equivalent to pascals with statement?
Describe the order of precedence with regards to operators in C.
What does main () mean in c?