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
What is union and structure in c?
Why are all header files not declared in every c program?
Can a variable be both const and volatile?
Explain what is the use of a semicolon (;) at the end of every program statement?
What is the value of h?
What is extern variable in c with example?
How do you override a defined macro?
What are control structures? What are the different types?
What's the right way to use errno?
If you know then define #pragma?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
diff between exptected result and requirement?
Which is the memory area not included in C program? give the reason
What is quick sort in c?
What are the salient features of c languages?