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

What are the different properties of variable number of arguments?

923


What is a pointer variable in c language?

853


What is fflush() function?

894


Do you know the purpose of 'register' keyword?

830


What is #include called?

813


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

866


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1243


What is the difference between text files and binary files?

968


What is use of null pointer in c?

757


The file stdio.h, what does it contain?

903


Why is event driven programming or procedural programming, better within specific scenario?

2178


How are structure passing and returning implemented?

789


What is typedef?

1012


How do you define CONSTANT in C?

907


What is hash table in c?

784