how to add numbers without using arithmetic operators.
Answer Posted / mobashyr
#include<stdio.h>
int main()
{
int x=5,y=10; //Use scanf otherwise
int z=add(x,y);
return 0;
}
int add(int a,int b)
{
int i;
for(i=0;i<b;i++)
{
a++;
}
return a;
}
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is fflush() function?
What is getch() function?
What is pass by reference in c?
What is the difference between printf and scanf in c?
What is c language used for?
What is c preprocessor mean?
When was c language developed?
What is c language in simple words?
Is r written in c?
What is difference between && and & in c?
What are two dimensional arrays alternatively called as?
What are pointers?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What's the difference between constant char *p and char * constant p?
What are the 5 types of inheritance in c ++?