c++ cZar

Monday, June 29, 2009

Bitwise operator(some nice program

Program to print Odd nos.:
#include
#include
using namespace std;
int main()
{
for(unsigned int i= 1; i <= 100; i++ )
    if( i & 0x00000001 )
        cout << i<<" ";
      getch();
}

Posted by Rekha Kumari at 12:51 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C - Cee

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (2)
    • ►  October (1)
    • ►  September (1)
  • ►  2010 (131)
    • ►  October (9)
    • ►  September (40)
    • ►  August (44)
    • ►  July (5)
    • ►  April (28)
    • ►  March (2)
    • ►  February (1)
    • ►  January (2)
  • ▼  2009 (125)
    • ►  December (99)
    • ►  November (5)
    • ►  September (8)
    • ►  August (1)
    • ▼  June (11)
      • Quick Sort
      • Link List
      • Bitwise operator(some nice program
      • Avoiding certain things in C/CPP
      • Avoiding getch() funtion in dev-cpp
      • Initialising arrays
      • Dynamic memory allocation
      • Passing 2 D array to function
      • Multi-dimensional arrays
      • Congruence
      • Zero in history
    • ►  January (1)
  • ►  2008 (25)
    • ►  August (25)

About Me

Rekha Kumari
View my complete profile
Simple theme. Powered by Blogger.