473,508 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

meaning of these symbol?

i'm a newbie for c programming.
Anyone can tell me what the meaning of '<<', '>>', '&' and ' | '?

Feb 26 '06 #1
7 14512
These symbols are bitwise operators.

& = AND

| = OR

<< = left shift
= right shift


If you want to know what these operators do, i suggest you to read
http://www.cs.cf.ac.uk/Dave/C/node13...00000000000000

Feb 26 '06 #2
thanks :)
how about this ' ->' ?

Feb 26 '06 #3
The -> symbol points to the member of some object/struct.
Like: myObject->value = 1;

Feb 26 '06 #4
jamx wrote:

The -> symbol points to the member of some object/struct.
Like: myObject->value = 1;


No it doesn't. It dereferences a pointer to a struct (or union)
and then selects the appropriate member. To select the member of a
struct use the '.' operator.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Feb 26 '06 #5
newbie wrote:
i'm a newbie for c programming.
Anyone can tell me what the meaning of '<<', '>>', '&' and ' | '?


This is no way to learn C. Get a good book on the subject.

Brian

--
If televison's a babysitter, the Internet is a drunk librarian who
won't shut up.
-- Dorothy Gambrell (http://catandgirl.com)
Feb 26 '06 #6
"newbie" <ch*********@yahoo.com> writes:
i'm a newbie for c programming.
Anyone can tell me what the meaning of '<<', '>>', '&' and ' | '?


If you have a decent textbook or tutorial, you can easily look up this
information. If you don't, you're not going to be able to learn the
language.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 26 '06 #7
jamx wrote:
These symbols are bitwise operators.

& = AND

| = OR

<< = left shift
= right shift


If you want to know what these operators do, i suggest you to read
http://www.cs.cf.ac.uk/Dave/C/node13...00000000000000


& = BITWISE AND
| = BITWISE OR
Feb 27 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5845
by: Richard | last post by:
I am setting up HS in 8i, when I go to $ORACLE_HOME/bin and do a ldd hsodbc i get the below error message, I have done a relink to recreate the hsodbc executable but still no luck. I do have a tar...
0
1672
by: John Graat | last post by:
Hi all, I've built the STLport-462 library on AIX-4.3.3 using gcc-3.3.2. No errors during compilation. However, during linking the following error occurs: ld: 0711-317 ERROR: Undefined symbol:...
19
3821
by: ccwork | last post by:
Hi all, I am reading "C: A Reference Manual" 4th ed and I get lost for the "extern". It says that global object without specifying the storage-class specifier will have "extern" as the default...
12
1596
by: ranjeet.gupta | last post by:
Dear All While building the the project, I am geting the two errors at linking stage. Can any help me out what these exactly means ?? Linking... Creating library Debug/15JulyBulid.lib and...
2
1244
by: John A Grandy | last post by:
Does anyone know the meaning of "#" within a URL ? I have seen URLs where "#" is being used a separator of some kind, similar to how "&" is used ... Is this meaningful within HTTP itself ? Or...
1
4609
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import...
2
5300
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
6
121855
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
43
17165
by: emyl | last post by:
Hi all, here's an elementary question. Assume I have declared two variables, char *a, **b; I can then give a value to a like a="hello world";
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.