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

Use struct tag to declare many variables of that type.

#include<stdio.h>

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

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

  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 some who knows best? #: The spokes person for a coffe company, when coffee was for losers. #: