write a program for 7*8 = 56 ? without using * multiply
operator ? output = 56
Answer Posted / rama krishna sidhartha
Here is the logic.
void func()
{
int i;
int result = 0;
for(i = 0; i < 8; i++)
{
result = result + 7;
}
printf("%d",result);
}
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What does sizeof int return?
What is hash table in c?
Tell me when is a void pointer used?
What is meant by preprocessor in c?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
Explain the difference between the local variable and global variable in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How is actual parameter different from the formal parameter?
How can a process change an environment variable in its caller?
can we implement multi-threads in c.
write a program to print data of 5 five students with structures?
Explain logical errors? Compare with syntax errors.
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
If I have a char * variable pointing to the name of a function ..
Why doesnt the call scanf work?