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
Explain "const" reference arguments in function?
Is c++ platform dependent?
What is different in C++, compare with unix?
What is the use of main function in c++?
What is a class template in c++?
Out of fgets() and gets() which function is safe to use and why?
Is c++ a good beginners programming language?
What is this weird colon-member (" : ") syntax in the constructor?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Why is standard template library used?
What do you mean by volatile and mutable keywords used in c++?
What is ctime c++?
Is c++ low level?
Explain the advantages of using friend classes.
What is c++ 11 and c++ 14?