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 getch ()?
Explain heap and queue.
What is static identifier?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What is static function in c?
What are the 3 types of structures?
Are the outer parentheses in return statements really optional?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain what is the difference between the expression '++a' and 'a++'?
Tell me what is null pointer in c?
What does printf does?
If the size of int data type is two bytes, what is the range of signed int data type?
Define Array of pointers.
Tell me is null always defined as 0(zero)?
Explain how can type-insensitive macros be created?