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 are keywords c?
What is a shell structure examples?
why programs in c are running with out #include
Explain how to reverse singly link list.
Write a program to show the change in position of a cursor using c
Explain a pre-processor and its advantages.
What is static function in c?
What are the types of variables in c?
How arrays can be passed to a user defined function
What is scope rule of function in c?
What is the symbol indicated the c-preprocessor?
What is the explanation for cyclic nature of data types in c?
What is anagram in c?
Is the exit() function same as the return statement? Explain.
Implement bit Array in C.