write a program for 7*8 = 56 ? without using * multiply
operator ? output = 56

Answer Posted / manish soni bca 3rd year jaipu

#include<stdio.h>
#include<conio.h>
void main()
{
int i,ans;
ans=0;
for(i=0;i<8;i++)
ans=ans+7;
printf("%d",ans);
getch();
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2224


What are void pointers in c?

574


What are different types of variables in c?

571


Why c is called free form language?

569


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1492






What is external variable in c?

612


What is indirection?

649


Can you mix old-style and new-style function syntax?

660


What are pointers? Why are they used?

628


What is a scope resolution operator in c?

748


What are shell structures used for?

599


Do you know the difference between exit() and _exit() function in c?

607


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

655


What is the difference between procedural and functional programming?

517


Is main a keyword in c?

630