write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / venky
main()
{
int a,b,c;
printf("enter a,b values:");
scanf("%d%d",&a,&b);
c=((a)-(-b));
printf("sum of a,b is %d",c);
}
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Explain what header files do I need in order to define the standard library functions I use?
How is = symbol different from == symbol in c programming?
Which header file is essential for using strcmp function?
What are the loops in c?
Why array is used in c?
Explain pointer. What are function pointers in C?
What is malloc calloc and realloc in c?
How can I handle floating-point exceptions gracefully?
write a program to generate address labels using structures?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What are header files and what are its uses in C programming?
What are dangling pointers in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......