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
the maximum length of a character constant can be a) 2 b) 1 c) 8
Explain the pure virtual functions?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Which programming language should I learn first?
What is the full form nasa?
What do you mean by inheritance in c++? Explain its types.
What is a pointer with example?
What is static in c++?
What is an object in c++?
Explain the isa and hasa class relationships. How would you implement each?
How are pointers type-cast?
What are the differences between the function prototype and the function defi-nition?
What's the order in which the objects in an array are destructed?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Why do we use templates?