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

Chapter IV

In this chapter we will demonstrate how Functions and Arrays work in C.
#include<stdio.h>

/* a function called make_me_upper, called by main */
int make_me_upper( char * s ) {
   int delta ;
   delta = 'a' - 'A' ;
   while (*s) {
      *s -= delta ;
      s++ ;
   }
}

int main(){
  char * t ;
  t = "shout" ;
  make_me_upper(t) ;    /* the function call */
  printf ("%s!\n",t) ;
}
What does this C language program print? #Shuffle: none $PAGE$-A $PAGE$-B Return to Learn C Table of Contents #: It prints: shout! #: It prints: SHOUT! #: