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
I need previous papers of CSC.......plz help out by posting them.......
Can we declare variable anywhere in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What are the salient features of c languages?
Write a progarm to find the length of string using switch case?
write a programming in c to find the sum of all elements in an array through function.
When the macros gets expanded?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Is it fine to write void main () or main () in c?
What is const and volatile in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Explain is it better to bitshift a value than to multiply by 2?
Explain zero based addressing.
Can we compile a program without main() function?