How to add two numbers without using arithmetic operators?
Answer Posted / ramanareddy
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the two numbers");
scanf("%d %d",%a,&b);
c=(-(-a-b));
printf("sum is = %d",c");
getch();
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
write a progrmm in c language take user interface generate table using for loop?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
Where are local variables stored in c?
write a program to print largest number of each row of a 2D array
hi send me sample aptitude papers of cts?
How do I determine whether a character is numeric, alphabetic, and so on?
Explain how can a program be made to print the name of a source file where an error occurs?
how can f be used for both float and double arguments in printf? Are not they different types?
How can you determine the maximum value that a numeric variable can hold?
Why main function is special give two reasons?
write a c program to find the sum of five entered numbers using an array named number
What is the explanation for prototype function in c?
Explain what is the difference between text files and binary files?
What is main return c?
code for find determinent of amatrix