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
What are the different properties of variable number of arguments?
What is a pointer variable in c language?
What is fflush() function?
Do you know the purpose of 'register' keyword?
What is #include called?
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
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is the difference between text files and binary files?
What is use of null pointer in c?
The file stdio.h, what does it contain?
Why is event driven programming or procedural programming, better within specific scenario?
How are structure passing and returning implemented?
What is typedef?
How do you define CONSTANT in C?
What is hash table in c?