How to add two numbers without using arithmetic operators?
Answer Posted / prashant
even this gives the same ans as the above program gives...
just every one plz check it and tell me
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c;
printf("enter the nos");
scanf("%d %d",&b,&c);
a= (b^c);
printf("%d",a);
return 0;
}
| Is This Answer Correct ? | 19 Yes | 114 No |
Post New Answer View All Answers
How can I write a function that takes a format string and a variable number of arguments?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are the different types of pointers used in c language?
Explain the use of #pragma exit?
What is array within structure?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Why static is used in c?
Why can't I perform arithmetic on a void* pointer?
How can you pass an array to a function by value?
FILE PROGRAMMING
int i=10; printf("%d %d %d", i, i=20, i);
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is identifier in c?
Is there anything like an ifdef for typedefs?