#Meta-Wlp: #Macro: TITLE wlp: Learn C (III) p. 3
s
is type char *
char *
?
int
and strings?
*
do?
#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. #: