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
Between macros and functions,which is better to use and why?
Why do we use static in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is sizeof c?
How old is c programming language?
What does c value mean?
Can you write the algorithm for Queue?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is %lu in c?
Why is extern used in c?
What is #pragma statements?
What are different types of operators?
What is character constants?
What is wild pointer in c?
What are the advantages of c preprocessor?