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

Answer Posted / syamanth

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2279


What is c system32 taskhostw exe?

828


Lists the benefits of c programming language?

863


How can you be sure that a program follows the ANSI C standard?

1413


Can a void pointer point to a function?

813


Can you please explain the difference between strcpy() and memcpy() function?

845


What is difference between structure and union with example?

857


How can you avoid including a header more than once?

785


Write a program to reverse a given number in c?

830


What does p mean in physics?

837


Where we use clrscr in c?

937


How is = symbol different from == symbol in c programming?

845


What is the use of header?

867


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1619


What is the scope of global variable in c?

786