Re: Some Questions.
- From: "James Kuyper Jr." <jameskuyper@xxxxxxxxxxx>
- Date: Thu, 11 Oct 2007 12:33:23 GMT
GeorgeRXZ wrote:
On Oct 11, 2:47 am, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:GeorgeRXZ said:
Hi Friends,Standard C is C. "Non-standard C" is something that isn't C.
I have some questions related to C Language.
1> What is the difference between the standard C language and Non
standard C language ?
2> which is better C Lanugage, C under Linux/ Unix or C underThe C language doesn't care which platform you use.
windows/ DOS ?
3> Under Linux Platform why Conio.h and and many other header filesC doesn't define Conio.h. If you want one, write your own.
are not available in C Language Compiler ?
4> Which is latest version of C ?The barely-implemented ISO/IEC 9899:1999.
and who makes changes to theISO.
language Syntax and Add new features or upgrade the language ?
I have written some programs in C language and have uploaded theI looked at the list of problems you claim to have solved, and there's no
source codes to my website.
http://zsoftwares.googlepages.com/CPrograms.html
http://zsoftwares.googlepages.com/DSFPrograms.htm
I have used Turboc compiler (borland International) for writing and
executing all source programs in C on above website. All source code
run properly and gives output under Windows / DOS platform.( Turboc
Compiler). But these programs don't run on compiler of linux os why
this happens ?
reason why any of them can't be solved in a way that works on both Windows
and Linux, using the C language.
Then I looked at your code. As well as being poor C, it unnecessarily uses
non-standard language and library extensions. Remove these and tidy up the
C itself, and you will find that you are able to port the code to Linux
effortlessly.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Mr. Richard Heathfield. thanks for your feedback. But My questions
remained unanswered I don't need remark on my source codes (good or
bad).
I expect you to give answers of my four Questions.
1> What is the difference between the standard C language and Non
standard C language ?
The shortest complete description of non-standard C is to include a complete copy of the C standard. Any C compiler which does not match that description is compiling a non-standard version of the C language.
Don't expect a complete list of the ways in which different non-standard versions of C differ from standard C; that list would be thousands of pages long.
2> which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The answer is "Yes". If that doesn't seem like a valid answer, that's because you don't understand what's wrong with the question you're asking.
First of all, the C language is the C language, regardless of what operating system you're using it on. The only thing you can reasonably ask that is operating system dependent is "which is better, C compilers for Linux or C compilers for Windows/DOS".
Second problem. Notice that I said "C compilers for Linux" NOT "the Linux C compiler". That's because there are many different compilers for both operating system. The answer will be different for different compilers. The only way you can ask the question with any hope of getting a meaningful answer is if you ask about a specific Linux compiler and a specific Windows/DOS compiler.
However, you still can't get a meaningful answer, because you haven't defined what you mean by better. Do you mean "faster compilation", "faster executable", "more reliable", "smaller compiler", "smaller executable", "better diagnostic messages", "better technical support", "lower cost", something else entirely, or some combination of the above?
Finally, for most of the meanings I listed above for "better", the answer may depend upon the computer hardware you're using, the particular program you want to compile, and in some cases it depends upon which inputs you give to that program. It can also depend upon how many other users are using the system at the same time you are. There's no single right answer. The only way to be sure is to do a test run with a particular program, with particular inputs, on a particular platform. Keep in mind that whatever test results you get will not necessarily apply to any other program, any other set of inputs, or any other platform. You won't even necessarily get the same test results the next time you use the same program on the same platform with the same inputs.
3> Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
While you can use those header files in C programs for Windows, they are not part of the standard C language, but part of the Windows/DOS operating system. Different facilities are used under Linux to achieve similar purposes. In general, there is no exact Linux replacement for any given Windows facility (and vice-versa) - they are organized differently with different interfaces in the different operating systems.
4> Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
As far as I could tell, it was perfectly accurate and complete. If you didn't find it helpful, could you please explain why?
.
- Follow-Ups:
- Re: Some Questions.
- From: Richard Heathfield
- Re: Some Questions.
- References:
- Some Questions.
- From: GeorgeRXZ
- Re: Some Questions.
- From: Richard Heathfield
- Re: Some Questions.
- From: GeorgeRXZ
- Some Questions.
- Prev by Date: Re: fwrite() misses writing a byte
- Next by Date: Re: Some Questions.
- Previous by thread: Re: Some Questions.
- Next by thread: Re: Some Questions.
- Index(es):
Relevant Pages
|