Thread: Regarding Pointer Again!!!!

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    26

    Regarding Pointer Again!!!!

    Thanks Friend!!!

    Also I want to know 2 more things..

    Can i declare like this:

    1) int *p = 0; // I guess p here would be a NULL pointer.

    2) int *p, q;
    p = &q;
    p=4; // What will p contain?Is it a valid statement?

    Thanks in Advance!!!!

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Why not try them out?

  3. #3
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    Quote Originally Posted by subhashish1213 View Post
    Thanks Friend!!!

    Also I want to know 2 more things..

    Can i declare like this:

    1) int *p = 0; // I guess p here would be a NULL pointer.

    2) int *p, q;
    p = &q;
    p=4; // What will p contain?Is it a valid statement?

    Thanks in Advance!!!!
    Why are you creating new thread for the same question?
    HOPE YOU UNDERSTAND.......

    By associating with wise people you will become wise yourself
    It's fine to celebrate success but it is more important to heed the lessons of failure
    We've got to put a lot of money into changing behavior


    PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
    IDE- Microsoft Visual Studio 2008 Express Edition

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. Quick Pointer Question
    By gwarf420 in forum C Programming
    Replies: 15
    Last Post: 06-01-2008, 03:47 PM
  3. Parameter passing with pointer to pointer
    By notsure in forum C++ Programming
    Replies: 15
    Last Post: 08-12-2006, 07:12 AM
  4. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM
  5. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM