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
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
What are void pointers in c?
What are different types of variables in c?
Why c is called free form language?
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
What is external variable in c?
What is indirection?
Can you mix old-style and new-style function syntax?
What are pointers? Why are they used?
What is a scope resolution operator in c?
What are shell structures used for?
Do you know the difference between exit() and _exit() function in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is the difference between procedural and functional programming?
Is main a keyword in c?