Give a fast way to multiply a number by 7

Answers were Sorted based on User's Feedback



Give a fast way to multiply a number by 7..

Answer / shivangi

Hi Tejonath
What is your logic in your answere.Its absolutely correct.
I'm asking is there any generic way to do this?could you
please reply here or answere me to
verma_shivangi@yahoo.co.in

Is This Answer Correct ?    4 Yes 9 No

Give a fast way to multiply a number by 7..

Answer / siva

Hi Tejonath
What is your logic in your answere.Its absolutely correct.
I'm asking is there any generic way to do this?could you
please reply here or answere me to gvsivannarayana@yahoo.com

Thanks&Regards
siva..

Is This Answer Correct ?    4 Yes 11 No

Give a fast way to multiply a number by 7..

Answer / anveshbanti

void main()
{
int a=i;
printf(enter i value");
scanf("%d",&i)
int res=i*7;
printf("result is " res);
}

Is This Answer Correct ?    2 Yes 19 No

Give a fast way to multiply a number by 7..

Answer / mani

n=n*7;

Is This Answer Correct ?    9 Yes 47 No

Give a fast way to multiply a number by 7..

Answer / atul sharma

(x<<2)-1

Is This Answer Correct ?    15 Yes 89 No

Post New Answer

More C Interview Questions

A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.

4 Answers  


what is different between auto and local static? why should we use local static?

0 Answers  


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

0 Answers  


What is the advantage of using #define to declare a constant?

0 Answers   Agilent, ZS Associates,


What is a dynamic array in c?

0 Answers  






What is main () in c?

0 Answers  


what is the different bitween abap and abap-hr?

0 Answers   TCS,


What is the scope of static variables?

1 Answers  


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


plssssss help !!....using array.. turbo c.. create a program that will accept number of words to be consored. .a word must not exceed 10 characters long .the text to be entered will be no longer than 200 characters .there will be no 10 words example: enter number of words to be censor: 5 enter words to censor: windows office microsoft bill gates enter text to censor: bill gates founded microsoft and makes office and windows sample output: <consored> <censored> founded <censored> and makes <censored> and <censored>

1 Answers  


What are the applications of c language?

0 Answers  


Explain the binary height balanced tree?

0 Answers  


Categories