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
How can I remove the trailing spaces from a string?
How is pointer initialized in c?
What are the different types of data structures in c?
What is header file definition?
Explain how can I convert a string to a number?
What is the use of static variable in c?
What is a union?
Hi can anyone tell what is a start up code?
In c language can we compile a program without main() function?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
How can I discover how many arguments a function was actually called with?
What are formal parameters?
i have a written test for microland please give me test pattern
What does c in a circle mean?