how to add two numbers without using arithmetic operators?
Answer Posted / shashishekar
#include<stdio.h>
#include<conio.h>
int main()
{
int a= 10;
int b=5;
int sum=0;
sum= a-(~b)-1;
printf(" sum= %d",sum);
getch();
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does #pragma once mean?
What is the auto keyword good for?
What is double pointer?
What are the similarities between c and c++?
Describe how arrays can be passed to a user defined function
Which programming language is best for getting job 2020?
What is main function in c?
What is the use of volatile?
Explain about the functions strcat() and strcmp()?
What is static memory allocation? Explain
c program to compute AREA under integral
What is the right type to use for boolean values in c? Is there a standard type?
What is structure and union in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What are the applications of c language?