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 array of structure in c programming?
What is wrong with this initialization?
What is the best way to store flag values in a program?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What does *p++ do? What does it point to?
Can math operations be performed on a void pointer?
What are void pointers in c?
What are called c variables?
What is a shell structure examples?
Can true be a variable name in c?
Why is struct padding needed?
What are the 4 data types?
What is the use of ?
Explain what is the benefit of using #define to declare a constant?