how to add numbers without using arithmetic operators.
Answer Posted / abdur rab
#include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
| Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
What is cohesion in c?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Write a program to swap two numbers without using a temporary variable?
What are the advantages of Macro over function?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Can two or more operators such as and be combined in a single line of program code?
What does sizeof function do?
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.
How do I use void main?
explain what is a newline escape sequence?
What are keywords in c with examples?
What is meant by preprocessor in c?
Can we use visual studio for c?
Why do we use null pointer?