cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What is <<?
What is <<?
Oct 31, 2011 at 7:35pm UTC
subjugater
(71)
An inline function is defined as this:
inline
int
pow2(
int
L) { assert(L>=0);
return
(1<<L); }
Can anybody let me know that what
1<<L
means? What is
<<
?
Thank you so much!
Oct 31, 2011 at 7:41pm UTC
ivanho
(16)
It is one of bitwise operators
http://en.wikipedia.org/wiki/Bitwise_operation
Oct 31, 2011 at 8:00pm UTC
subjugater
(71)
ivanho,
Thank you for reminding on shift operators!
Thx!
Topic archived. No new replies allowed.