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
List some applications of c programming language?
What does %p mean c?
How do I convert a string to all upper or lower case?
What is the difference between if else and switchstatement
How can I generate floating-point random numbers?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
write a program to create a sparse matrix using dynamic memory allocation.
What are the two types of functions in c?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Which is an example of a structural homology?
What is a dynamic array in c?
List a few unconditional control statement in c.
What is c basic?
How do you define a function?
What is include directive in c?