Write a C program to multiply tho numbers without using
arithmetic operator (+, -, *, /).



Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /)...

Answer / taz

int a=5,b=2,c,i,j;

for(i=1;i<=a;i++)
for(j=1;j<=b;j++)
c++;

printf("%d",c);

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More C Interview Questions

What is strcmp in c?

0 Answers  


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

0 Answers  


how can i get output like this? 1 2 3 4 5 6

6 Answers   Excel,


What is the difference between a function and a method in c?

0 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,






What is #include stdlib h?

0 Answers  


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


Write a program to find the biggest number of three numbers in c?

0 Answers  


program to find the roots of a quardratic equation

1 Answers  


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

0 Answers  


Why do we use header files in c?

0 Answers  


What is the difference between struct and typedef struct in c?

0 Answers  


Categories