Register
Remember Me?
Forum
Today's Posts
C and C++ FAQ
Forum Actions
Mark Forums Read
Quick Links
View Forum Leaders
What's New?
Get Started with C or C++
C Tutorial
C++ Tutorial
Get the C++ Book
All Tutorials
Advanced Search
Forum
General Programming Boards
C Programming
C Read an integer and count 1s only at positions 2, 4, 6 , 8 of the binary
Getting started with C or C++
|
C Tutorial
|
C++ Tutorial
|
C and C++ FAQ
|
Get a compiler
|
Fixes for common problems
Thread:
C Read an integer and count 1s only at positions 2, 4, 6 , 8 of the binary
Thread Tools
Show Printable Version
Email this Page…
Subscribe to this Thread…
Search Thread
Advanced Search
Display
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
Hybrid View
Previous Post
Next Post
12-19-2018
#1
akis
View Profile
View Forum Posts
Registered User
Join Date
Dec 2018
Posts
13
I tried it and it gives me again 0 .. I 'm assuming it is 0 + 0 + 0 + 0 + 0 = 0
Quick Navigation
C Programming
Top
Site Areas
Settings
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Forums
General Programming Boards
C++ Programming
C Programming
C# Programming
Game Programming
Networking/Device Communication
FAQ Board
Programming Book and Product Reviews
Platform Specific Boards
Windows Programming
Linux Programming
Cprogramming.com and AIHorizon.com's Artificial Intelligence Boards
General AI Programming
Community Boards
Article Discussions
Tech Board
General Discussions
A Brief History of Cprogramming.com
Contests Board
Projects and Job Recruitment
«
Previous Thread
|
Next Thread
»
Popular pages
Exactly how to get started with C++ (or C) today
C Tutorial
C++ Tutorial
5 ways you can learn to program faster
The 5 Most Common Problems New Programmers Face
How to set up a compiler
8 Common programming Mistakes
What is C++11?
Creating a game, from start to finish
Recent additions
How to create a shared library on Linux with GCC
- December 30, 2011
Enum classes and nullptr in C++11
- November 27, 2011
Learn about The Hash Table
- November 20, 2011
Rvalue References and Move Semantics in C++11
- November 13, 2011
C and C++ for Java Programmers
- November 5, 2011
A Gentle Introduction to C++ IO Streams
- October 10, 2011
Similar Threads
Append an integer to a char * as a count
By googol in forum C Programming
Replies:
5
Last Post:
04-15-2014,
10:12 PM
read file start from different positions
By Dedalus in forum C Programming
Replies:
7
Last Post:
08-21-2011,
01:35 PM
read roll no., marks, count pass and fail
By jackson6612 in forum C++ Programming
Replies:
1
Last Post:
04-23-2011,
11:51 PM
count how many lines, allocate vector, and read again
By patiobarbecue in forum C++ Programming
Replies:
4
Last Post:
02-26-2009,
07:18 PM
Count Number of Digits in and Integer
By redneon in forum C++ Programming
Replies:
2
Last Post:
08-18-2003,
04:16 PM
Tags for this Thread
binary
,
bit-shift
,
bitwise-operators
,
positions
,
program
View Tag Cloud