Give a fast way to multiply a number by 7

Answer Posted / thejonath

int i=2,j;
j=i;
i=(i<<3)-j;

Is This Answer Correct ?    100 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better between malloc and calloc?

664


Explain 'far' and 'near' pointers in c.

701


How many types of arrays are there in c?

591


What are local variables c?

547


What are header files and explain what are its uses in c programming?

605






What is oops c?

602


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

710


write a progrmm in c language take user interface generate table using for loop?

1571


When is a null pointer used?

635


What is #line used for?

576


What is wrong in this statement?

601


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1412


Difference between exit() and _exit() function?

653


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

660


Lists the benefits of c programming language?

591