How to add two numbers without using arithmetic operators?

Answer Posted / suhas

# include <stdio.h>
main()
{
int a=8,b=2;
a|=b;
printf("sum="+a);
}

Is This Answer Correct ?    7 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c value paradox explain?

807


What is a null pointer in c?

859


Differentiate between #include<...> and #include '...'

827


What is extern c used for?

783


using for loop sum 2 number of any 4 digit number in c language

2004


What is header file definition?

840


What is hash table in c?

787


What is assert and when would I use it?

788


What are the header files used in c language?

806


Explain the difference between null pointer and void pointer.

869


In C language what is a 'dangling pointer'?

849


What is the general form of #line preprocessor?

787


What is function prototype in c language?

824


How do I send escape sequences to control a terminal or other device?

850


What are the various types of control structures in programming?

819