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
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is c system32 taskhostw exe?
Lists the benefits of c programming language?
How can you be sure that a program follows the ANSI C standard?
Can a void pointer point to a function?
Can you please explain the difference between strcpy() and memcpy() function?
What is difference between structure and union with example?
How can you avoid including a header more than once?
Write a program to reverse a given number in c?
What does p mean in physics?
Where we use clrscr in c?
How is = symbol different from == symbol in c programming?
What is the use of header?
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.....
What is the scope of global variable in c?