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 are multibyte characters?

647


How will you write a code for accessing the length of an array without assigning it to another variable?

618


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

609


What is the importance of c in your views?

599


Explain indirection?

650






What is a pointer on a pointer in c programming language?

623


Describe the order of precedence with regards to operators in C.

635


What are types of functions?

570


What is a buffer in c?

578


What are the disadvantages of c language?

624


Tell us bitwise shift operators?

601


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

722


What is pointers in c?

661


what is reason of your company position's in india no. 1.

1779


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1523