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

What is the use of bitwise operator?

694


What is f'n in math?

623


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

598


How can I implement sets or arrays of bits?

609


Where static variables are stored in memory in c?

527






int i=10; printf("%d %d %d", i, i=20, i);

1018


Explain the use of keyword 'register' with respect to variables.

593


diff between exptected result and requirement?

1597


What does s c mean in text?

619


Dont ansi function prototypes render lint obsolete?

612


What is an arrays?

658


Explain how can a program be made to print the line number where an error occurs?

698


Why c is called object oriented language?

592


How to establish connection with oracle database software from c language?

1679


Why main is not a keyword in c?

652