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
How does normalization of huge pointer works?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What is the difference between far and near in c?
What are the features of c languages?
What is local and global variable in c?
Why c is called free form language?
regarding pointers concept
What is data types?
Why is c called a structured programming language?
Can a variable be both constant and volatile?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What are pointers?
What are structure members?
How #define works?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.