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 / manoj sharma

You can use left bitwise operator.
Say if your no is n then n<<1 will return n*2.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a file operation in C with an example.

664


Is this program statement valid? INT = 10.50;

687


Is multithreading possible in c?

568


What is stack in c?

615


What are the 4 data types?

602






what is the structure pointer?

1644


Why does everyone say not to use gets?

610


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1818


Why c is known as a mother language?

646


In a switch statement, explain what will happen if a break statement is omitted?

640


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1718


is it possible to create your own header files?

642


c program for searching a student details among 10 student details

1656


How to set file pointer to beginning c?

670


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

633