write a c programs to do multiplication of two numbers with
out using arithmatic operator ??????????
Answer Posted / mohan0877
#include<stdio.h>
main()
{
int a,b,result;
print("Enter values of a and b :")
scanf{"%d %d",&a,&b};
result=0;
while(b!=0)
{
if(b&01)
resultresul+a;
a<<=1;
b>>=1;
}
}
| Is This Answer Correct ? | 3 Yes | 13 No |
Post New Answer View All Answers
Is it valid to address one element beyond the end of an array?
How to establish connection with oracle database software from c language?
What is typedf?
How can you be sure that a program follows the ANSI C standard?
What are the keywords in c?
How to write a multi-statement macro?
What is adt in c programming?
Write a program to reverse a given number in c language?
Why & is used in scanf in c?
what is ur strangth & weekness
What is the g value paradox?
write a proram to reverse the string using switch case?
What is calloc malloc realloc in c?
What is the benefit of using const for declaring constants?
What are the different types of errors?