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 two forms of #include directive?
What is external variable in c?
Explain what is meant by high-order and low-order bytes?
read a number & print all its devisors using c-program?
write a programme to convert temperature from farenheit to celcius?
What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value
How can I run c program?
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
how to convert an char array to decimal array
Write a program to accept a character & display its corrosponding ASCII value & vice versa?
Write a c program to demonstrate Type casting in c?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.