write a c program to add two integer numbers without using
arithmetic operator +

Answer Posted / raja

void main()
{
int a=20,b=40;
for( ;b<=1;b--)
a++;
printf("%d",a);
}

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between exit() and _exit() function?

638


Why do we use main function?

642


Why is c so popular?

654


What are c identifiers?

631


Can we declare function inside main?

572






any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

697


Why do we use pointer to pointer in c?

603


How can a program be made to print the line number where an error occurs?

655


What is string in c language?

630


Why do we use & in c?

595


Where can I get an ansi-compatible lint?

646


How are structure passing and returning implemented?

594


What is indirection?

657


What are the advantages of external class?

598


Explain what are multidimensional arrays?

607