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 / 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


Please Help Members By Posting Answers For Below Questions

explain what are pointers?

1028


Why flag is used in c?

1139


Tell me when is a void pointer used?

1190


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2385


What is meant by recursion?

1059


Explain main function in c?

1094


Does sprintf put null character?

1055


What is the difference between #include

and #include “header file”?

1039


Give differences between - new and malloc() , delete and free() ?

1108


If you know then define #pragma?

1118


How does free() know explain how much memory to release?

1066


What is the difference between c &c++?

1169


What is the newline escape sequence?

1083


In C programming, what command or code can be used to determine if a number of odd or even?

1072


Why does not c have an exponentiation operator?

1065