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
Do pointers store the address of value or the actual value of a variable?
Explain is it valid to address one element beyond the end of an array?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
how to make a scientific calculater ?
What does & mean in scanf?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Is array a primitive data type in c?
What is structure pointer in c?
Where are c variables stored in memory?
Explain how can I pad a string to a known length?
explain how do you use macro?
What is selection sort in c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Write a program to identify if a given binary tree is balanced or not.
Write a program to check palindrome number in c programming?