Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to add two numbers without using arithmetic operators?

Answer Posted / shashishekar

#include<stdio.h>
#include<conio.h>
int main()
{
int a= 10;
int b=5;
int sum=0;
sum= a-(~b)-1;
printf(" sum= %d",sum);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this code?

1192


What is an array in c?

1059


What is string in c language?

1164


hi, which software companys will take,if d candidate's % is jst 55%?

2093


What are structure members?

1096


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 “****”.

3188


How do you convert strings to numbers in C?

1231


Can you please explain the scope of static variables?

1063


There seem to be a few missing operators ..

1053


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2871


Is there a way to jump out of a function or functions?

1107


What is a struct c#?

1060


Are pointers really faster than arrays?

1036


What is the use of void pointer and null pointer in c language?

1128


Which is better oop or procedural?

1080