How to add two numbers without using arithmetic operators?
Answer Posted / jayanth kothapalli
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
Printf("Enter Two numbers:");
scanf("%d,%d",&a,&b);
c=-(-a-b);
printf("sum is = %d",c);
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Explain how can you avoid including a header more than once?
What are pointers? What are different types of pointers?
What is a static variable in c?
What is a method in c?
What is dynamic memory allocation?
What are the main characteristics of c language describe the structure of ac program?
Where define directive used?
List the variables are used for writing doubly linked list program.
What is console in c language?
What is the maximum length of an identifier?
What is wild pointer in c?
Write a program to use switch statement.
What is nested structure?
Why is c faster?
Describe the difference between = and == symbols in c programming?