473,409 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Basic doubts in operators

Hi friends,

can anyone tell me..
1)what happens in the statement

int a=16,a>>2=4
what does the >>(right shift operator)do?

2)what will be the result of the expression 13&25?
what does the & operator do in this expression?


thankx in advance
Aug 24 '07 #1
7 1524
JosAH
11,448 Expert 8TB
Hi friends,

can anyone tell me..
1)what happens in the statement

int a=16,a>>2=4
what does the >>(right shift operator)do?

2)what will be the result of the expression 13&25?
what does the & operator do in this expression?


thankx in advance
You're studying Java right? I assume you've got a book for that, right? How come
that book doesn't cover Java's operators? Is that book that bad? Shame on your
teacher then for handing out such crap.

kind regards,

Jos
Aug 24 '07 #2
r035198x
13,262 8TB
Hi friends,

can anyone tell me..
1)what happens in the statement

int a=16,a>>2=4
what does the >>(right shift operator)do?

2)what will be the result of the expression 13&25?
what does the & operator do in this expression?


thankx in advance
The Sun tutorial entry for those things is here.
Read it and post again if you're still confused.
Aug 24 '07 #3
You're studying Java right? I assume you've got a book for that, right? How come
that book doesn't cover Java's operators? Is that book that bad? Shame on your
teacher then for handing out such crap.

kind regards,

Jos

ya...am reading java....and reading it on my own....
i am new to java...thats why...silly doubts...
if its so silly..pardon me for posting such crap....
Aug 24 '07 #4
r035198x
13,262 8TB
ya...am reading java....and reading it on my own....
i am new to java...thats why...silly doubts...
if its so silly..pardon me for posting such crap....
He didn't say you posted crap. He said a Java book without those things is crap.
Aug 24 '07 #5
The Sun tutorial entry for those things is here.
Read it and post again if you're still confused.

thanks a lot friend....it was quite informative...
Aug 24 '07 #6
JosAH
11,448 Expert 8TB
ya...am reading java....and reading it on my own....
i am new to java...thats why...silly doubts...
if its so silly..pardon me for posting such crap....
Well, the question by itself isn't crap; it is just very easily answered if you first
did some reading; that's what books are for.

kind regards,

Jos
Aug 24 '07 #7
He didn't say you posted crap. He said a Java book without those things is crap.
oh sorry yaar..i misunderstood...


thanks once again for ur post...
Aug 24 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Leif K-Brooks | last post by:
Has anyone ever tried implementing a simple unstructured BASIC dialect in Python? I'm getting interested in language implementation, and looking at a reasonably simple example like that could be...
0
by: abbas reji | last post by:
--0-599929911-1059996886=:4358 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline ...
6
by: ritesh | last post by:
Hi, I have been reading some text on C and C++ (i.e advanced books). One of the books mentioned that C++ requires a runtime support whereas C does not - what the author was trying to say was...
17
by: ranjeet.gupta | last post by:
Dear All Below are the few doubts which I got while studying about C 1. Is there any method in C by which we can process the entire string in one unit, 2. Does there exist any way to...
20
by: Amit D.Shinde | last post by:
How can i add the scroll bar to my form if the controls are more. I am having lot of of coontrols on my form. for which my form is small. so i want to add the scroll bar to my form. Also if the...
2
by: subrahmanyamcva0605 | last post by:
what is the diffrence between x++,++x,--x,x-- if int x=5;then i got the value of x++ is 5 ++x is 6 but these values will not come in to picture if i am trying to...
3
by: jaynallu | last post by:
LEFT]I AM VERY MUCH CONFUSED ABOUT THE DIFFRENCE BETWEEN THE BASIC THINGS LIKE...SQL,MYSQL,ORACLE9i,ORACLE10G,PL/SQL.. CAN U CLEAR MY DOUBTS...
3
by: parag_paul | last post by:
http://concentratedlemonjuice.blogspot.com/2008/06/about-c-puzzles-on-my-blog.html Try this one for 30 chapters on C++ doubts,
6
by: alessio211734 | last post by:
I have a class that defines a generic point where p={a1..an} template<class T,int iclass Point { public: T v; Point<T,i>() { for (int j=0;j<i;j++) v=0;
1
by: kuntal dandapat | last post by:
2. Describe the operators and constants (Symbols) in Visual Basic .Net.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.