How to add two numbers without using arithmetic operators?

Answer Posted / ranjith

#include<stdio.h>
main()
{
int a=5,b=4,c;
c=a||b;
printf("sum="+c);
}

Is This Answer Correct ?    2 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have enums?

604


Explain what is wrong in this statement?

637


Describe the header file and its usage in c programming?

622


How can a program be made to print the name of a source file where an error occurs?

734


Ow can I insert or delete a line (or record) in the middle of a file?

579






Mention four important string handling functions in c languages .

634


What is the meaning of 2d in c?

617


What are types of functions?

570


Explain what will the preprocessor do for a program?

607


What is a good data structure to use for storing lines of text?

601


Explain #pragma statements.

606


What is the use of void pointer and null pointer in c language?

633


What is calloc() function?

627


What will be the outcome of the following conditional statement if the value of variable s is 10?

769


Explain the difference between malloc() and calloc() function?

604