viceroy

Saturday, February 18, 2012

DIG'IT'-----techfest by IT students of Vidyanikethan guyyssss


Posted by roy at 7:46 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

sample program to avoid confusion with auto and register storage classes....

//Program tested on Microsoft Visual Studio 2008  
 #include<iostream>
using namespace std;

int main()
{
 int i = 123;
 auto int j = 456;
 register int k = 789;

 cout<<"Address of i = " << &i <<", Value = " << i << endl;
 cout<<"Address of j = " << &j <<", Value = " << j << endl;
 cout<<"Address of k = " << &k <<", Value = " << k << endl;

 return 0;
}
Posted by roy at 5:00 AM 2 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: auto and register storage classes
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2013 (5)
    • ►  August (2)
      • ►  Aug 25 (1)
      • ►  Aug 06 (1)
    • ►  July (3)
      • ►  Jul 20 (3)
  • ▼  2012 (7)
    • ▼  February (7)
      • ►  Feb 25 (1)
      • ►  Feb 21 (1)
      • ►  Feb 19 (3)
      • ▼  Feb 18 (2)
        • DIG'IT'-----techfest by IT students of Vidyaniketh...
        • sample program to avoid confusion with auto and re...
  • ►  2011 (7)
    • ►  August (2)
      • ►  Aug 07 (1)
      • ►  Aug 02 (1)
    • ►  July (4)
      • ►  Jul 31 (1)
      • ►  Jul 25 (1)
      • ►  Jul 22 (2)
    • ►  January (1)
      • ►  Jan 10 (1)

About Me

My photo
roy
Please feel free to ask any question on programming...
View my complete profile

Pages

  • Home
  • c/c++/java programming

Followers

c/c++/java

  • c/c++/java-post your comments if u have any
Travel theme. Powered by Blogger.