How to add two numbers without using arithmetic operators?
Answer Posted / pradeep
prashant answer is wrong suppose add two similar numbers
prashant answers will fail because addtion of two similar
bits according to the bitwise xor fails.
| Is This Answer Correct ? | 17 Yes | 10 No |
Post New Answer View All Answers
How do you print an address?
What is the difference between exit() and _exit() function?
Why doesnt long int work?
What is %d used for?
Explain logical errors? Compare with syntax errors.
What is the equivalent code of the following statement in WHILE LOOP format?
What is C language ?
What is sizeof int?
What is the difference between strcpy() and memcpy() function in c programming?
What is an array? What the different types of arrays in c?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are the 3 types of structures?
How can I ensure that integer arithmetic doesnt overflow?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is difference between && and & in c?