How to add two numbers without using arithmetic operators?
Answer Posted / ramanareddy
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the two numbers");
scanf("%d %d",%a,&b);
c=(-(-a-b));
printf("sum is = %d",c");
getch();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Explain built-in function?
Are c and c++ the same?
What are 3 types of structures?
What is typedf?
Write a program to find the biggest number of three numbers in c?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
what are the facialities provided by you after the selection of the student.
what value is returned to operating system after program execution?
What is the purpose of 'register' keyword?
What does & mean in scanf?
How many levels of indirection in pointers can you have in a single declaration?
What is structure data type in c?
What are shell structures used for?
What is getch?
What are logical errors and how does it differ from syntax errors?