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
When should you use a type cast?
How can I write a function analogous to scanf?
What are the application of c?
write a c program in such a way that if we enter the today date the output should be next day's date.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Difference between malloc() and calloc() function?
write a program to print largest number of each row of a 2D array
Write a program to reverse a linked list in c.
How can I change their mode to binary?
Whats s or c mean?
What is the purpose of clrscr () printf () and getch ()?
What is the use of parallelize in spark?
What are the 4 types of organizational structures?
How can I avoid the abort, retry, fail messages?
When should the volatile modifier be used?