Search:

Type: Posts; User: ZuK

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,392

    if you want to initialize a structure you could...

    if you want to initialize a structure you could use

    struct student s = {1, "joe"};
    Kurt
  2. Replies
    3
    Views
    1,392

    p.name="dilipkumar"; //whats wrong with...

    p.name="dilipkumar"; //whats wrong with this statement??
    C doesn't allow to assign to an array.
    use strcpy()

    strcpy(p.name,"dilipkumar");

    to initialize an array use


    char...
Results 1 to 2 of 2