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
What is wrong in this statement? scanf(ā%dā,whatnumber);
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
what are the different storage classes in c?
What is page thrashing?
What is difference between array and pointer in c?
What is the difference between typedef struct and struct?
What is data types?
What is the general form of #line preprocessor?
Is there a way to compare two structure variables?
c language interview questions & answer
What are qualifiers and modifiers c?
What are the difference between a free-standing and a hosted environment?
What is data structure in c language?
When can you use a pointer with a function?
What are types of functions?