write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / sushma sarma
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter a and b";
cin>>a;
cin>>b;
while(a!=0)
{
++b;
a--;
}
cout<<b;
return 0;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is scope and lifetime of a variable in c?
Do you know the purpose of 'register' keyword?
Explain how do you determine a file’s attributes?
What are void pointers in c?
what is the diffrenet bettwen HTTP and internet protocol
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is structure padding and packing in c?
What is wrong in this statement?
Are negative numbers true in c?
Is c procedural or functional?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Why we use stdio h in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Write a C program to count the number of email on text
write a program in c language to print your bio-data on the screen by using functions.