adspace


how to add numbers without using arithmetic operators.

Answer Posted / autojack

#include<stdio.h>
#include<conio.h>
void main()
{
int a=5,x=10,c;
clrscr();
c=a|x;
printf("%d",c);
getch();
}

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you determine the length of a string value that was stored in a variable?

1205


what is ur strangth & weekness

2592


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2216


i have a written test for microland please give me test pattern

2814


What are pointers? What are different types of pointers?

1266


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1361


What is the general form of a C program?

1100


How do you convert strings to numbers in C?

1346


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2516


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1297


What is pointer to pointer in c with example?

1200


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2740


ATM machine and railway reservation class/object diagram

5337


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1183


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

2400