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


Please Help Members By Posting Answers For Below Questions

What is the basic structure of c?

825


How do you construct an increment statement or decrement statement in C?

1013


What is binary tree in c?

880


What are multibyte characters?

892


write a program in c language to print your bio-data on the screen by using functions.

6573


What is getch c?

1076


What is the purpose of main() function?

973


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1988


Can you please explain the scope of static variables?

830


What does a pointer variable always consist of?

896


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1046


Write a code on reverse string and its complexity.

818


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

1341


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2348


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

942