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 a struct c#?

607


What is dynamic memory allocation?

812


Explain what are its uses in c programming?

600


Who is the founder of c language?

688


Write program to remove duplicate in an array?

604






What is const keyword in c?

753


State two uses of pointers in C?

643


Explain how can you tell whether a program was compiled using c versus c++?

582


can any one tel me wt is the question pattern for NIC exam

1562


What are data types in c language?

590


Write a program that accept anumber in words

1257


What is the heap?

691


Where static variables are stored in memory in c?

527


how to create duplicate link list using C???

2081


What are global variables?

652