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 s or c?
How do you initialize pointer variables?
What are header files in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Can we access array using pointer in c language?
What is a floating point in c?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
while initialization of array why we use a[][2] why not a[2][]...?
What's the difference between constant char *p and char * constant p?
What is a method in c?
What does char * * argv mean in c?
What is the difference between typedef struct and struct?
For what purpose null pointer used?
What is function what are the types of function?
What are the different file extensions involved when programming in C?