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

What is #include conio h?

813


What are the two types of structure?

844


Why c is procedure oriented?

812


What tq means in chat?

865


What are register variables in c?

826


Do you know what are the properties of union in c?

819


Can a void pointer point to a function?

796


What are the similarities between c and c++?

833


Is c++ based on c?

866


Explain what does the function toupper() do?

847


Is c dynamically typed?

917


What is malloc() function?

867


Why flag is used in c?

890


When we use void main and int main?

834


What is data structure in c language?

865