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

Answer Posted / praveenkumar

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

Is This Answer Correct ?    66 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the properties of union.

863


What are the basic data types associated with c?

1081


How can you find the day of the week given the date?

898


What is #pragma statements?

892


What does c value mean?

900


Is c is a high level language?

915


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2943


Explain the binary height balanced tree?

949


What type of function is main ()?

840


define string ?

907


What is character constants?

937


What is c language in simple words?

849


Which is best book for data structures in c?

859


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

886


Explain 'far' and 'near' pointers in c.

937