#Meta-Wlp: #Macro: TITLE wlp: Learn C (III) p. 3 #Eval: $TITLE$ #Macro: PAGE bb3-3

Yes, s is type char *

You are probably plagued by questions such as,
#include<stdio.h>

int main(){
  char * s ;         /* one char-star */
  char * t ;         /* another char-star */

  /* initialize the char-star's */
  s = "I am a string - %s\n" ;
  t = "but what am I?" ;

  /* and experiment with the printf function */
  printf (s,t) ;

}
What does this program do. #Shuffle: none $PAGE$-A $PAGE$-B $PAGE$-C Return to Learn C Table of Contents #: It prints: I am a string - %s \n but what am I? #: It prints: I am a string - but what am I? without any newlines. #: It prints: I am a string - but what am I?, followed by a newline. #: