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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an arrays?

646


Is c is a procedural language?

589


What is a dynamic array in c?

587


What is the difference between constant pointer and constant variable?

742


What is meant by recursion?

625






Is c programming hard?

569


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1488


Explain how do you sort filenames in a directory?

600


Write a factorial program using C.

637


Why we use conio h in c?

580


How would you use the functions fseek(), freed(), fwrite() and ftell()?

697


What is putchar() function?

628


What is the use of getchar() function?

622


Differentiate between #include<...> and #include '...'

615


Hi can anyone tell what is a start up code?

1607