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
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is unsigned int in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Is calloc better than malloc?
What is difference between function overloading and operator overloading?
What are the keywords in c?
What are the header files used in c language?
What are the application of void data type in c?
How to delete a node from linked list w/o using collectons?
Are comments included during the compilation stage and placed in the EXE file as well?
What is the translation phases used in c language?
Describe the difference between = and == symbols in c programming?
What are data types in c language?
What is console in c language?
Why do we use c for the speed of light?