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

write a program to add two numbers without using an arithmetic
operator.

Answer Posted / mogankumar pc

#include<stdio.h>
#include<conio.h>
int main()
{
int first,second;
printf("enter the two numbers");
scanf("%d%d",&first,&second);
first+= second;
printf("RESULT:%d",first);
getch();
return 0;
}
//+= is not arithmetic operator; its assignment operator

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1125


What is the C-style character string?

1141


Is there any difference between int [] a and int a [] in c++?

1014


Explain how the virtual base class is different from the conventional base classes of the opps.

1163


What is null pointer and void pointer and what is their use?

1093


What is command line arguments in C++? What are its uses? Where we have to use this?

1266


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1117


What is a memory leak c++?

1130


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

1281


Why is c++ still used?

1083


what is C++ objects?

1185


What is the hardest coding language to learn?

1034


What do you mean by delegate? Can a user retain delegates?

936


What is the use of setfill in c++?

1070


describe private access specifiers?

1223