How to add two numbers without using arithmetic operators?
Answer Posted / suhas
# include <stdio.h>
main()
{
int a=8,b=2;
a|=b;
printf("sum="+a);
}
| Is This Answer Correct ? | 7 Yes | 43 No |
Post New Answer View All Answers
Is it cc or c in a letter?
What is #include called?
What is the difference between array and pointer?
What is the function of multilevel pointer in c?
What functions are used for dynamic memory allocation in c language?
Explain the difference between malloc() and calloc() function?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is c preprocessor mean?
What is the explanation for prototype function in c?
Difference between macros and inline functions? Can a function be forced as inline?
What are the valid places to have keyword “break”?
Why doesnt the call scanf work?
Explain what are run-time errors?
Why is not a pointer null after calling free?
What is the difference between class and object in c?