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
Explain function?
Who developed c language?
What is restrict keyword in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Is fortran still used today?
How can a program be made to print the line number where an error occurs?
What is the use of clrscr?
What is typedef?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
How can I make it pause before closing the program output window?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Is c easy to learn?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How can I manipulate individual bits?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)