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 does c mean in standard form?
What is the benefit of using #define to declare a constant?
What's the difference between constant char *p and char * constant p?
Write a program with dynamically allocation of variable.
What does it mean when the linker says that _end is undefined?
why programs in c are running with out #include
What is pass by reference in c?
Explain how can I convert a string to a number?
Explain the bubble sort algorithm.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
I came across some code that puts a (void) cast before each call to printf. Why?
Why isn't any of this standardized in c? Any real program has to do some of these things.
How do you convert strings to numbers in C?
How is actual parameter different from the formal parameter?
What is bin sh c?