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
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What is the C-style character string?
Is there any difference between int [] a and int a [] in c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is null pointer and void pointer and what is their use?
What is command line arguments in C++? What are its uses? Where we have to use this?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What is a memory leak c++?
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?
Why is c++ still used?
what is C++ objects?
What is the hardest coding language to learn?
What do you mean by delegate? Can a user retain delegates?
What is the use of setfill in c++?
describe private access specifiers?