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
What is the purpose of ftell?
What is a static variable in c?
What are pragmas and what are they good for?
What is the general form of a C program?
What is a pointer and how it is initialized?
What are the characteristics of arrays in c?
What is a program flowchart and how does it help in writing a program?
If errno contains a nonzero number, is there an error?
What is a program flowchart?
Write the control statements in C language
How can I read a binary data file properly?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is difference between main and void main?
Why does not c have an exponentiation operator?