write a c program to add two integer numbers without using
arithmetic operator +
Answer Posted / sivaprabhu
main()
{
int a,b,c;
printf("enter the values a,b");
scanf("%d%d",&a,&b);
c=a-(~b)-1;
printf("the sum is %d",c);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a shell structure examples?
Explain enumerated types.
How can you be sure that a program follows the ANSI C standard?
What is a pragma?
How can I do serial ("comm") port I/O?
difference between Low, Middle, High Level languages in c ?
Can you tell me how to check whether a linked list is circular?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What are the different categories of functions in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
How do you generate random numbers in C?
FILE PROGRAMMING
What are all different types of pointers in c?
What is function prototype in c language?
#include