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 is srand c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What are the advantages and disadvantages of using inline and const?
2 Answers Polaris, TCS, Zimmer Biomet,
What is array give example?
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
wap to accept 10 numbers & display the number of odd and even numbers??
Differentiate between structure and class in c++.
Explain static and dynamic memory allocation with an example each.
Explain "const" reference arguments in function?
What is implicit conversion/coercion in c++?
what are difference between c and c++?