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
How do you print only part of a string?
What are dangling pointers in c?
What is infinite loop?
Explain Function Pointer?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
which type of aspect you want from the student.
Why use int main instead of void main?
Who invented b language?
What is spark map function?
what is the difference between 123 and 0123 in c?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the g value paradox?
Why is structure padding done in c?
What is the purpose of the preprocessor directive error?
What is the description for syntax errors?