write a c programs to do multiplication of two numbers with
out using arithmatic operator ??????????
Answer Posted / vivekananda
#include<stdio.h>
void main()
{
int num = 2;
res = num << 1; //multiplication by 2
printf("%d\n",res);
}
| Is This Answer Correct ? | 24 Yes | 37 No |
Post New Answer View All Answers
What is the difference between printf and scanf )?
Is c procedural or object oriented?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Explain what is wrong with this statement? Myname = ?robin?;
What is difference between structure and union?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is an identifier?
How to get string length of given string in c?
In which language linux is written?
What is static function in c?
What are the disadvantages of a shell structure?
what is different between auto and local static? why should we use local static?
Explain the red-black trees?
Explain how do you determine whether to use a stream function or a low-level function?
Explain 'bit masking'?