write a C program, given number is double without using addt
ion and multiplication operator?ex:n=6,ans=12,pls send me ans
to goviseenu@gmail.com

Answer Posted / vadivelt

Do shift the given number left once.
ie., n<<1

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions to open and close the file in c language?

599


How can I use a preprocessorif expression to ?

613


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1130


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

921


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2340






What is New modifiers?

680


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

638


Explain spaghetti programming?

689


What is a stream water?

666


What are register variables in c?

584


How can I read a binary data file properly?

641


What happens if you free a pointer twice?

621


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

694


What is the difference between array and pointer in c?

591


What is the use of bitwise operator?

699