write a c program to add two integer numbers without using
arithmetic operator +

Answer Posted / venky

main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(-b));
printf("sum of a,b is %d",c);
}

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of sizeof?

771


What functions are used in dynamic memory allocation in c?

813


hi send me sample aptitude papers of cts?

1911


What are the advantage of c language?

787


Why do we use c for the speed of light?

833


What does main () mean in c?

871


Explain what is a pragma?

812


write an algorithm to display a square matrix.

2458


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

842


How arrays can be passed to a user defined function

802


What is the heap?

975


Why c is known as a mother language?

855


What do you know about the use of bit field?

827


What is a nested formula?

810


What are structures and unions? State differencves between them.

866