How to add two numbers without using arithmetic operators?

Answer Posted / pugalarasu

int sum(int num1,int num2)
{
for(int i=0;i<num2;i++)
num1++;
return num1;
}

Is This Answer Correct ?    39 Yes 50 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to explain the final year project as a fresher please answer with sample project

472


What is static function in c?

638


What is the explanation for the dangling pointer in c?

684


What is the full form of getch?

587


What is the use of a semicolon (;) at the end of every program statement?

778






What library is sizeof in c?

576


write a program to create a sparse matrix using dynamic memory allocation.

4375


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1432


Why is void main used?

624


How many levels of pointers have?

597


List some of the static data structures in C?

764


What is difference between constant pointer and constant variable?

632


What is string length in c?

618


Explain how can you check to see whether a symbol is defined?

665


What is getche() function?

611