How to add two numbers without using arithmetic operators?
Answer Posted / chirantan
//program to add two numbers without using + operator//
#include<stdio.h>
main()
{
int a,b,c;
printf("\n enter two numbers to add\n");
scanf("%d %d", &a,&b);
c=((a*a)-(b*b))/(a-b);
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
where are auto variables stored? What are the characteristics of an auto variable?
What math functions are available for integers? For floating point?
Can we access the array using a pointer in c language?
What is the purpose of sprintf() function?
Explain threaded binary trees?
What is the advantage of c?
What are the main characteristics of c language describe the structure of ac program?
What is the difference between null pointer and wild pointer?
What does nil mean in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Is stack a keyword in c?
What are keywords in c with examples?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is c basic?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.