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 are the general concepts of c and c++

2 Answers  


How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.

1 Answers  


What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack

6 Answers  


what is a function prototype?

5 Answers  


how to print "hai" in c?

13 Answers   TCS,






how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......

10 Answers   Infosys,


What are Macros? What are its advantages and disadvantages?

0 Answers   TCS,


Why does notstrcat(string, "!");Work?

0 Answers  


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


Explain what does it mean when a pointer is used in an if statement?

0 Answers  


what do you mean by inline function in C?

0 Answers   IBS, TCS,


write a program to display reverse of a number using for loop?

14 Answers  


Categories