Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Learning C Programming Lesson 32: Pointers Array and Structure

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,477
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 23, 2008

In this Lesson we will learn about Pointer Arrays in Structure

  • likes, 5 dislikes

Link to this comment:

Share to:

Top Comments

  • can't see

  • @TheCosmicFrog yeah C++ has its own string library. It's still a C-style string though; but, you don't have to waste time writing the same general functions over and over again.

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • @nickrohn93 Never looked too deeply into C++ to be honest. Ran away from C as fast as I could and embraced Java. It's a sad realization that some day I will need to go back to C/C++ on my hands and knees and beg for its forgiveness.

  • @TheCosmicFrog Well if you look at c++'s standard lib they use char type :P

  • How can't you people see? Do you know how to enlarge the window?

  • There are lots of errors in these videos, on the pointer part as well as the structure part!!

    I don't think this guy is a qualified teacher or experienced programmer

  •  What will be the type of ptr_b?

    int *ptr, ptr_b;

  • @pagola hahah, what he did was fine. An array is a pointer. It points to a mem loc which can then hold data, which in this case is a 4 ASCII characters.

  • @djcrank7 try the predefined gets() function, you making a simple task more complicated than it needs to be.

  • ok...i have a question...if i would like to read the names of a family(for example for 4 people)..i set the structure and then in main i write...struct family array[4];...but how should i read the exact names...like this??

    for(i=0;i<=3;i++){ gets(array.name[i]);/*or with scanf...??*/

    }...plz answer...

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