write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / praveenkumar
main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(-b));
printf("a+b="&c);
}
| Is This Answer Correct ? | 66 Yes | 3 No |
Post New Answer View All Answers
What is the difference between struct and typedef struct in c?
What is call by value in c?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is self-referential structure in c programming?
how can use subset in c program and give more example
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is clrscr in c?
Write a c program to demonstrate character and string constants?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the process to create increment and decrement stamen in c?
What is the use of header files?
What is memory leak in c?
Can you please explain the difference between malloc() and calloc() function?
Suggesting that there can be 62 seconds in a minute?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?