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 basic structure of c?
How do you construct an increment statement or decrement statement in C?
What is binary tree in c?
What are multibyte characters?
write a program in c language to print your bio-data on the screen by using functions.
What is getch c?
What is the purpose of main() function?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Can you please explain the scope of static variables?
What does a pointer variable always consist of?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Write a code on reverse string and its complexity.
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above