The C Programming Language

C 语言学习经典书籍The C programming language.pdf 英文版

链接:https://pan.baidu.com/s/15OK81D3ytRFFFpWvrLRwkQ

提取码:wsx7


C语言圣经

Chapter 01

1.1 first program:

#include       //include information about standard library

main()       // define a function called main

{     

       printf("hello, world\n");   //"printf" is a founction,"\n" represents the newline character

}

1.2 Variables and Arithmetic Expressions

#include

    /* print Fahrenheit-Celsius table        for fahr = 0, 20, ..., 300 */  

main()  

{     

          int fahr, celsius;     

          int lower, upper, step;

          lower = 0;      /* lower limit of temperature scale */    

          upper = 300;    /* upper limit */     

          step = 20;      /* step size */

          fahr = lower;   

         while (fahr <= upper) {        

                  celsius = 5 * (fahr-32) / 9;        

                  printf("%d\t%d\n", fahr, celsius);          

                  fahr = fahr + step;    

}

你可能感兴趣的:(The C Programming Language)