RE: Learning C with Psycho_Coder | Part:1 04-10-2013, 08:00 AM
#8
(04-10-2013, 07:04 AM)Psycho_Coder Wrote:(04-10-2013, 07:00 AM)H4R0015K Wrote: just a question in the sample code above why not use void main() has the main function doesn't return anything.
Thank you , for pointing out the mistake . It has been edited
int main is not a mistake, it is a standard. A lot of compilers do not allow void main, which is correct.
int main returns the code that indicates whether the program ran correctly. 0 means that everything is fine. So leave it in there. Everything else would be bad practice.
(04-10-2013, 06:46 AM)Psycho_Coder Wrote: @Deque
I have updated the thread , correcting the punctuation , gave some details on Compiler and Interpreter .
More suggestion's are welcomed , any error or if I have made any mistakes please point it out .
Also I will be using Visual Studio 2010 as compiler for explaining codes .
Thank You,
Visual Studio is an IDE, not a compiler.
I will read over your tutorial and post again if I see something.
Edit:
Knowing the term Interpreter is not necessary for a C introduction. C is compiled language, whereas Java is compiled into an intermediate language (Bytecode), which is interpreted by the virtual machine. The examples and pictures show how Java works, but it has nothing to do with C.
Maybe you should use other sources.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
Expressed feelings are just an attempt to simulate humans.
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)