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


Please Help Members By Posting Answers For Below Questions

Explain what is a 'locale'?

579


What is stack in c?

603


What is the purpose of 'register' keyword?

683


What is define directive?

634


Describe newline escape sequence with a sample program?

645






Why is c so important?

590


How does selection sort work in c?

614


what is recursion in C

603


what is the height of tree if leaf node is at level 3. please explain

1591


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1629


Why is c platform dependent?

613


write an algorithm to display a square matrix.

2216


Do you know the use of fflush() function?

592


What is getch () for?

670


How can I get the current date or time of day in a c program?

647