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
What does return 1 means in c?
What are predefined functions in c?
What is an arrays?
how to capitalise first letter of each word in a given string?
Explain is it valid to address one element beyond the end of an array?
What is the difference between NULL and NUL?
Is a house a shell structure?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How do you construct an increment statement or decrement statement in C?
What is the use of volatile?
How can I make it pause before closing the program output window?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Is it acceptable to declare/define a variable in a c header?
How can you call a function, given its name as a string?
What is c language in simple words?