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

Can variables be declared anywhere in c?

871


program to convert a integer to string in c language'

2226


Define Spanning-Tree Protocol (STP)

908


What are all different types of pointers in c?

803


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

938


What is c basic?

927


How can I generate floating-point random numbers?

831


What is a pointer on a pointer in c programming language?

883


What is volatile, register definition in C

918


What is use of integral promotions in c?

910


What does the message "automatic aggregate intialization is an ansi feature" mean?

954


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4849


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

872


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2882


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

956