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
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
State two uses of pointers in C?
What is the difference between strcpy() and memcpy() function in c programming?
Explain null pointer.
What is the purpose of ftell?
Explain what are run-time errors?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What are the salient features of c languages?
Tell me can the size of an array be declared at runtime?
What are the 5 types of inheritance in c ++?
What is the purpose of sprintf() function?
What is the use of typedef in structure in c?
What are terms in math?
What is getche() function?
How would you rename a function in C?