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 |
inline function is there in c language?
Can a variable be both const and volatile?
Where are c variables stored in memory?
Why is it usually a bad idea to use gets()? Suggest a workaround.
write a c program for greatest of three numbers without using if statment
where does it flourished?
The variables are int sum=10,SuM=20; these are same or different?
What does sizeof int return?
string reverse using recursion
what is difference between #include<stdio.h> and #include"stdio.h"
how to calculate the time complexity of a given algorithm? pls give exaples..mainly for the coplexities such as O(log n),O(n log n)...
what are the interview question's in the language c