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

What is dangling pointer in c?

823


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

833


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

3104


What is the difference between text files and binary files?

968


Why is a semicolon (;) put at the end of every program statement?

849


What is the best way to comment out a section of code that contains comments?

1083


Is it better to use a macro or a function?

908


How many bytes is a struct in c?

919


How can you restore a redirected standard stream?

802


What are dangling pointers in c?

843


Define Array of pointers.

842


Explain what is the stack?

847


Compare array data type to pointer data type

830


Write a program to know whether the input number is an armstrong number.

909


What are directives in c?

749