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
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Is null always defined as 0(zero)?
Explain what is gets() function?
how we can make 3d venturing graphics on outer interface
What are file streams?
What is the difference between the expression “++a” and “a++”?
what are non standard function in c
What does node * mean?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Differentiate fundamental data types and derived data types in C.
Can the curly brackets { } be used to enclose a single line of code?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
Can we replace the struct function in tree syntax with a union?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.