I continue to read this. "C Programming》,It isHemopurificationThat this,Third Edition。I bought it was genuine,Really I do not know why so many people recommend this book online,sky!
About thatvoid main () error shakingI do not do more than Tucao,,,
Saying today do exercises,Decisively I found a mistake。
In book 89,Exercise Exercise 4.5, his title was an example of this is the:
- #include<stdio.h>
- int main(void)
- {
- int a = 5,b = 7;
- float x = 67.8564,y = -789.124;
- char c = ‘A’;
- long n = 1234567;
- unsigned u = 65535;
- printf(“%d% d n”,a,b);
- printf(“%3d=n”,a,b);
- printf(“%f,%f n”,x,Y);
- printf(“%-10f,%-10f n”,x,Y);
- printf(“%8.2f,%8.2f,%.4f,%.4f,%3f,%3f n”,x,Y,x,Y,x,Y);
- printf(“%e,%10.2s n”,x,Y);
- printf(“%c,%d,%o,%x n”,c,c,c,c);
- printf(“%ld,%the,%x n”,n,n,n);
- printf(“%in,%o,%x,%d n”,in,in,in,in);
- printf(“%s,%5.3sn”,”COMPUTER”,”COMPUTER”);
- return 0;
- }
printf(“%ld,%the,%x n”,n,n,n);
See it to see it! Hmmm ⋯⋯ declaration sectionn Obviouslylongtype,Back to the outputxTherelGone! Then brush it did not! ! !
= = I say how gcc% x I suggested desperately wrong with it ⋯⋯
And initially I thought he was wrong ⋯⋯
How it can be! For those who only cheese on paper exercises c language,How deep hurt ah ~
This concludes Tucao ah ⋯⋯。
Other than that,you canResults on the paper to write a program compiled to runWhat?
I'm the first to write recompiled control Oh ~ ~ the result is all right! Ah ha ha
Original article written by LogStudio:R0uter's Blog » The c programming is really not a good book in the baby in the baby
Reproduced Please keep the source and description link:https://www.logcg.com/archives/124.html