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

write a program to copy the string using switch case?

2404


What is void main ()?

617


Is there a way to compare two structure variables?

619


application attempts to perform an operation?

1497


What are the types of type specifiers?

625






What is the difference between malloc calloc and realloc in c?

654


What do you mean by c what are the main characteristics of c language?

576


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2162


Is there any possibility to create customized header file with c programming language?

630


What is optimization in c?

572


Explain heap and queue.

591


How was c created?

591


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

638


What do you mean by dynamic memory allocation in c? What functions are used?

659


What is meant by gets in c?

611