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

typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1079


write a c program to find the sum of five entered numbers using an array named number

1622


int far *near * p; means

3129


When should we use pointers in a c program?

639


Explain can static variables be declared in a header file?

684






What are the ways to a null pointer can use in c programming language?

596


What is the difference between a string and an array?

712


How to delete a node from linked list w/o using collectons?

2093


Why is c called a structured programming language?

686


Explain what is meant by high-order and low-order bytes?

637


What does p mean in physics?

589


What are the different types of data structures in c?

610


When was c language developed?

706


What is the use of #define preprocessor in c?

623


how to write a c program to print list of fruits in alpabetical order?

1798