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


Please Help Members By Posting Answers For Below Questions

What are the types of data files?

732


Tell us something about keyword 'auto'.

668


What is a macro in c preprocessor?

634


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

815


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1533






How can you find out how much memory is available?

620


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

659


Explain bit masking in c?

642


How pointer is different from array?

585


What is a sequential access file?

650


Write a program to check armstrong number in c?

637


What is void main () in c?

738


What is floating point constants?

695


How do I copy files?

625


What is a structure in c language. how to initialise a structure in c?

611