#Meta-Wlp: #Macro: TITLE wlp: Learn C (IV) p. 6a #Eval: $TITLE$ #Macro: PAGE bb4-6a

(s+from) is a value to be used, not a variable to be assigned to.

What does the following code do?
#include<stdio.h>

int main() {
   char * s, * t ;
   s = "tops" ;
   t = s+3 ;
   printf("%s%s\n", t, s ) ;
}
#Shuffle: none $PAGE$-A $PAGE$-B $PAGE$-C Return to Learn C Table of Contents #: It prints garbage #: It copies some of s into t. #: It prints "stops". #: