C,C++

C,C++

int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);

View Answers

April 12, 2011 at 11:26 AM

#include<stdio.h>
#include<conio.h>
void main(){

int i=100,j=20; int c=i&j; int r=i|j;
 printf("%d",c); 
 printf("%d",r);
 getch();
}

The above code displays the output: 4116


April 12, 2011 at 12:33 PM

Sir how i&j gives 116 and i|j gives 4. what are these operators used for ??









Related Tutorials/Questions & Answers:
C,C++
C,C++  Sir, 100&30 gives output 4 in C++ and 100|30 gives output 116 How & and | gives output 4 and 116
C,C++
C,C++  int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r);   #include<stdio.h> #include<conio.h> void main(){ int i=100,j=20; int c=i&j; int r=i|j; printf("%d",c); printf("%d",r
Advertisements
c/c++ - Development process
c/c++  Creating animation using c/c++. The code for moving an object using c/c
c/c++ - Development process
c/c++  I need the code for developping two dice and roll them using c/c++. Thanks
variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C
C/C++ - Development process
C/C++  I need the code for playing the backgammon game using C/C++.Im using turbo C. I`ve already design the board.I badly need the code for playing this game
basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function
basic c/c++ questions
basic c/c++ questions  Are the Control statements like if(),while() in built functions? if no, why not as they satisfy all the properties of a function
C/C++ QUESTIONS
C/C++ QUESTIONS  â??Write a function for finding out the occurences of repeated word from a sentence. This function would return an array of duplicate words.â
c or c++ - Java Beginners
c or c++  Write a program for a two user chess game(Users must be on different systems)? please send me this source code to my mail id with step by step explanation
c c++ - Java Beginners
c c++  Write a Multi-user chat server and client  Hi Friend, Please visit the following link: http://www.roseindia.net/chatserver/index.shtml Hope that it will be helpful for you. Thanks
c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks
c/c++ - Development process
c/c++  Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help. Thanks
C/C++ QUESTIONS
C/C++ QUESTIONS  "Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks". For Example : GetHighestLowestMarks{Student{n}, Marks{n}} returns
Difference in XML, C, C++, Java
Difference in XML, C, C++, Java  hi... What is the difference between XML and C or C++ or Java ? please tell me about thatADS_TO_REPLACE_1 Thanks
c c++ - Swing AWT
c c++  Write Snake Game using Swings  Hi Friend, Try the following code: 1)SnakeGame.java: import javax.swing.JFrame; public class SnakeGame extends JFrame { public SnakeGame() { add(new Snake
c c++ - Java Beginners
c c++  Write a small record management application for a school...]; String name = f[1]; String c = f[2]; String note = f[3...]; String name = st[1]; String c = st[2]; String note = st[3]; if (id.equals
C/C++/JAVA Question on function
C/C++/JAVA Question on function  "Write a function to find out common... other data type also.ââ?¬Â? Question can be solved in C,C++ or JAVA. (Recommneded - C
EasyEclipse for C and C++
EasyEclipse for C and C++       EasyEclipse for C and C++ is all you need to start developing C and C++ code with Eclipse. There are currently 28 comments
ModuleNotFoundError: No module named 'C-C-Py'
ModuleNotFoundError: No module named 'C-C-Py'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'C-C-Py' How to remove the ModuleNotFoundError: No module named 'C-C-Py'
oopengl on3d using c/c++ - Development process
oopengl on3d using c/c++  sir i want a programs on opengl in 3d using c/c++ language give me new one sir
Ask C/C++ Questions online
Ask C/C++ Questions online       C and C++ are different programming language, but both the languages are popular among programmers. C is a general
Write a C/C++ program to show the result of a stored procedure
Write a C/C++ program to show the result of a stored procedure   how to write this?? Write a C/C++ program to show the result of a stored procedure "PROCRESETMAIL" on database "USER_NOTIFY
Cantata++ - for testing C and C++ software
Cantata++ - for testing C and C++ software  ... of the C/C++ languages to produce a tool which allows developers to efficiently... and target platforms Full support for: ANSI C (89 and 99), ISO C++, EC
What is the equivalent method in Java which is equivalent to clrscr() in c/c++ . The code should help to clear the output screen ?
What is the equivalent method in Java which is equivalent to clrscr() in c/c++ . The code should help to clear the output screen ?  Hello to all, I...() which is used in c/c++. In some sites i found using the Runtime.xxxx.xxx(command
C/C++ Programming Books
C/C++ Programming Books         Visual C++ 6 Unleashed Visual C++ 6 Unleashed provides comprehensive coverage of the core topics
Java - Continue statement in Java
languages such as C, C++, java etc. Sometimes we do not need to execute some... time like :  C:\chandan>javac Continue.java Continue.java...; } Then the program prints the output like :  ADS_TO_REPLACE_3 C
Learn Java in 24 hours
and programmers having knowledge of C, C++. They can have a basic idea for Java language within 24 hours as Java is based on C and C++ language. Most of the syntax of Java are similar to that of C and C++ so developers don't find
Nirvana
Nirvana       Nirvana is an open source email client written in Java, C, and C++. It is coded using SWT and SwingWT. The first in it's class. Nirvana combines SWT's
Message Expressions and comments
;    Like C and C++ objective-C provides comments. Programmer...-C Message expressions are enclosed in square brackets as given below: [receiver... Like C and C++ comments // and /*- - - - */ are allowed. For example:ADS
Learning Java Programming for Beginners
Java is an Object Oriented Programming Language that was developed by Sun Microsystems. It is based on C, C++ programming language but a tad better then them. It is more secure and simple to work on. Also the program written in Java
eSpell
, JavaProperties, C, C++, XML, HTML, JSP, and PHP. With support for Aspell
Continue statement in java
Continue statement in java In this section we will discuss about continue statement in java. continue is one of the branching statement used in most of the programming languages like C,C++ and java etc. Sometime we need to skip some
Fortran Books
Fortran Books         Using C and C++ With Fortran The ISO Fortran committee has tried to work with the ISO C and C++ committees to standardize
Astyle Eclipse Plugin
to provide a C/C++ formatter for CDT plugin in eclipse. so all the supported... in C/C++ format.ADS_TO_REPLACE_3 Eclipse Update Site You can install and update
Java Break
Java Break       Many programming languages like c, c++ uses the "break" statement. Java also use this statement when we need to exit from a loop before the completion
Tikal Eclipse
Enterprise, C/C++ and Dynamic Languages (Perl, PHP, Python and Ruby) Development
Java tutorial for beginners
on the basis of C and C++ but is more advanced, simple, robust and easy to learn... when C converts a byte code into machine code it converts it for a specific
Java Get Memory Usage
Java Get Memory Usage       If you have prior worked on C or C++ language, you must be aware of that unlike c++,  java don't tell that how much memory
Starting with Eclipse IDE
are available for C/C++,Cobol, PHP, JSP/Servlet, J2EE and many more. These Plug
Linux Books
is to explain the use of the GNU C and C++ compilers, gcc and g++. After... to teach the C or C++ languages themselves, since this material can be found... the early sections of the chapters "Compiling a C program", "Using the preprocessor
Break statement in java
Break statement in java Break statement in java is used to change the normal control flow of  compound statement like while, do-while , for. Break statement is used in many languages such  C, C++  etc. Sometimes it may
Mobile Software Development Solutions
development for iPhone, Smartphone and Pocket PC using C#, C... Windows Mobile C#, C++,XML, XHTML
What's New?
Tutorial | Core Java Tutorial | Java Tutorial | C Tutorials Browser
c - Java Beginners
c  image compression in c/c++ language
pattern
pattern   A B B C C C D D D D E E E E E
java - Java Interview Questions
Why Java  Why Java? why not C or C
question - Java Magazine
question  i want to the c and c++ interview question and answers
java - Java Beginners
java  show the references of three classes are equal? Ex:- class A A a; class B B b; class C C c; Show a.b.c=c.b.a
code for this is
code for this is  a b c d c b a a b c c b a a b b a a a code

Ads