write a program to add two numbers without using an arithmetic
operator.
Answer / 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 |
What does new in c++ do?
What is the header file for setw?
Explain the advantages of using friend classes.
What are the advantages of using typedef in a program?
What is a built-in function?
Adobe Interview & Adobe Placement Paper
Define private, protected and public access control.
Will c++ be replaced?
What are advantages and disadvantages of Design patterns?
How would you obtain segment and offset addresses from a far address of a memory location?
What is #include iostream?
What is format for defining a structure?