#Meta-Wlp: #Macro: TITLE wlp: Learn C (5) p. 5 #Eval: $TITLE$ #Macro: PAGE bb5-5

Initializers initializer in definition order.

#include<stdio.h>

int main(int argc, char * argv) {
  struct name { 
    char * first ; 
    char * last ; } ;

  struct name n1 = { "dylan", "thomas" } ;
  struct name n2 = { "bob", n1.first } ;

  printf("%s %s\n", n2.first, n2.last ) ;

}
What does this print out? #Shuffle: none $PAGE$-A $PAGE$-B Return to Learn C Introduction #: The name of a famous Welsh poet. #: The name of a famous musican. #: