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 the difference between malloc calloc and realloc in c?

924


Are the expressions * ptr ++ and ++ * ptr same?

896


Explain how can I write functions that take a variable number of arguments?

848


Explain setjmp()?

855


What is printf () in c?

815


Write a program that accept anumber in words

1513


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1984


When should we use pointers in a c program?

905


Why doesn't C support function overloading?

2240


Explain can you assign a different address to an array tag?

880


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

907


Is sizeof a keyword in c?

798


What is a structure member in c?

785


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1023


What are runtime error?

899