I am studying C.
My book does not have the same explanation for Linux OS as I guess a Windows compiler.
So how can I get the same benefit from the book using Linux as if I had the same program the book is using to teach?
Or have you any ideas SF of a better C programming ebook specifically for Linux?
Example would be the book says:
and this will produce:
And then it goes on to show this will produce the results
"Hello world"
But this doesnt happen at all
For Linux I have to type:
And thats after I write the code in the compiler and thats how I run the same thing... It would appear so anyways.
My book does not have the same explanation for Linux OS as I guess a Windows compiler.
So how can I get the same benefit from the book using Linux as if I had the same program the book is using to teach?
Or have you any ideas SF of a better C programming ebook specifically for Linux?
Example would be the book says:
Code:
cc hello.c
and this will produce:
Code:
a.out
And then it goes on to show this will produce the results
"Hello world"
But this doesnt happen at all
For Linux I have to type:
Code:
cc -c first.c
Code:
cc -o first first.c
Code:
./first
And thats after I write the code in the compiler and thats how I run the same thing... It would appear so anyways.