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
Are the variables argc and argv are local to main?
Explain what are run-time errors?
What is the difference between union and structure in c?
What is bubble sort technique in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
When can you use a pointer with a function?
What are local static variables? How can you use them?
What is a pointer variable in c language?
Why pointers are used in c?
How can I call a function with an argument list built up at run time?
Can the sizeof operator be used to tell the size of an array passed to a function?
What is the general form of #line preprocessor?
Can a program have two main functions?
What does double pointer mean in c?
Why is c called a structured programming language?