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 is the difference between abs() and fabs() functions?
What does calloc stand for?
If I have a char * variable pointing to the name of a function ..
Without Computer networks, Computers will be half the use. Comment.
How can I remove the leading spaces from a string?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
What does the function toupper() do?
If the size of int data type is two bytes, what is the range of signed int data type?
Explain the Difference between the New and Malloc keyword.
What is volatile, register definition in C
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Tell us bitwise shift operators?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How does pointer work in c?
What is the method to save data in stack data structure type?