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 open files mentioned on the command line, and parse option flags?
What is structure data type in c?
What is dynamic variable in c?
What does p mean in physics?
Is linux written in c?
Is struct oop?
What 'lex' does?
What is dynamic memory allocation?
How many types of arrays are there in c?
What are data structures in c and how to use them?
What is the collection of communication lines and routers called?
Can main () be called recursively?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Why is it usually a bad idea to use gets()? Suggest a workaround.
Write a program to check whether a number is prime or not using c?