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 is the use of the function in c?
What are the properties of union in c?
Describe dynamic data structure in c programming language?
Explain the difference between exit() and _exit() function?
How can I find out how much free space is available on disk?
What is the c language function prototype?
What is the use of void pointer and null pointer in c language?
What is the use of sizeof?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What are pointers? What are different types of pointers?
The difference between printf and fprintf is ?
Can an array be an Ivalue?
Why is python slower than c?
Why #include is used in c language?
Is c is a high level language?