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


Please Help Members By Posting Answers For Below Questions

What is the difference between near, far and huge pointers?

852


What are type modifiers in c?

847


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

860


writ a program to compare using strcmp VIVA and viva with its output.

1817


What is #include called?

837


What is the use of pointers in C?

875


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

891


What are called c variables?

818


Why main is used in c?

859


What is break statement?

886


What are dangling pointers in c?

868


What is function what are the types of function?

791


Explain what is a pragma?

831


What is volatile variable how do you declare it?

809


How to delete a node from linked list w/o using collectons?

2439