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
Why should I use standard library functions instead of writing my own?
Can a variable be both const and volatile?
explain what are pointers?
why programs in c are running with out #include
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
How do you determine a file’s attributes?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is #define in c?
Explain high-order and low-order bytes.
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What are 3 types of structures?
What is context in c?
Explain what is the difference between functions abs() and fabs()?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Which header file should you include if you are to develop a function which can accept variable number of arguments?