write a program for 7*8 = 56 ? without using * multiply
operator ? output = 56
Answer Posted / raju kalyadapu
int main()
{
int i=0,n=0;
while(i++<8)
n=n+7;
printf("7 * 8 is:%d",n);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the uses of a pointer?
What is the use of #define preprocessor in c?
What are the different types of constants?
I have seen function declarations that look like this
Define macros.
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is the use of static variable in c?
explain what is fifo?
Is c is a middle level language?
Explain modulus operator.
What is fflush() function?
How can I avoid the abort, retry, fail messages?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
When c language was developed?