how to add numbers without using arithmetic operators.
Answers were Sorted based on User's Feedback
Answer / dally
#include<stdio.h>
int main()
{
int a=3,b=5;
while(a--)
b = b++;
printf("%d\n");
}
| Is This Answer Correct ? | 2 Yes | 8 No |
Answer / 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 |
Answer / satish gaikwad
suppose a=6 and b=3
we can write c=a-(-b)
which will give us c=9
| Is This Answer Correct ? | 5 Yes | 23 No |
What are the storage classes in C?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
wat is output of the following int main() { const int j=2; int i; switch(i) { case 1:break; case j:break; default:break; } }
what is difference between overriding and overloading?
how many times of error occur in C
Is null a keyword in c?
What is unsigned int in c?
Explain how do you print an address?
why we use "include" word before calling the header file. is there any special name for that include??????
What is the use of printf() and scanf() functions?
write a progam to compare the string using switch case?
prog for 1st five prime numbers in 2^x - 1