how to add two numbers without using arithmetic operators?

Answer Posted / rajkumar

#include<stdio.h>
#include<conio.h>
void main()
{
int a=6,b=3,sum=0;
sum=a^b;
printf("sum=%d",sum);
getch();
}

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

670


hi any body pls give me company name interview conduct "c" language only

1670


What is ponter?

775


Why is c platform dependent?

624


What is c programing language?

616






What does %p mean c?

633


What is the heap in c?

646


What is wrong with this statement? Myname = 'robin';

823


write a program to concatenation the string using switch case?

1561


What extern c means?

546


Why do we use & in c?

593


Explain bit masking in c?

639


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2272


Explain how do you override a defined macro?

589


Explain what are run-time errors?

610