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
What are the types of data files?
Tell us something about keyword 'auto'.
What is a macro in c preprocessor?
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
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.
How can you find out how much memory is available?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain bit masking in c?
How pointer is different from array?
What is a sequential access file?
Write a program to check armstrong number in c?
What is void main () in c?
What is floating point constants?
How do I copy files?
What is a structure in c language. how to initialise a structure in c?