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 is a manipulative person?

779


When do you call copy constructors?

914


How do I run c++?

830


What is the meaning of string in c++?

831


To which numbering system can the binary number 1101100100111100 be easily converted to?

845


What are put and get pointers?

874


Should I learn c++ c?

856


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1015


what are Access specifiers in C++ class? What are the types?

894


What does obj stand for?

885


What are the advantages of pointers?

844


Define what is constructor?

846


Are php strings immutable?

824


What is iterator c++?

749


What are built-in functions? What is the syntax for the definition?

859