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 purpose of ftell?

603


What is a static variable in c?

673


What are pragmas and what are they good for?

580


What is the general form of a C program?

602


What is a pointer and how it is initialized?

613






What are the characteristics of arrays in c?

618


What is a program flowchart and how does it help in writing a program?

669


If errno contains a nonzero number, is there an error?

812


What is a program flowchart?

609


Write the control statements in C language

656


How can I read a binary data file properly?

637


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

683


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

669


What is difference between main and void main?

633


Why does not c have an exponentiation operator?

631