Learning C Programming Lesson 25: Pointers and Arrays

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,608
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 23, 2008

Here i will discuss and create an example in Pointers and arrays

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • size too small...btw thanks for ur gr8 effort

  • No indentation? hmmm =/

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • @Joeyinsane69 ... we reserve one extra for null character when we are using strings.... in this case we are using array of numbers which does not require a null character.....

  • shouldnt it be int intArr [11] = {1,2,3,4,5,6,7,8,9,10}?

    one extra for the Null character

  • Why do you have a comment here:

    int *ptr=intArr; // shorthand for intArr[0]

    That comment is misleading and incorrect. intArr == &intArr[0]. intArr[0] may not (and in this case MOST LIKELY WON'T be equal to intArr. intArr decays to a pointer to integer. The type of intArr[0] is int. The two types are incompatible by the standard.

  • shouldn't that be *ptr = &intArr[0] @ 1:00 since u need the start adress of intArr and not its 1st value

  • Thanks.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more