Re: Some Questions.



GeorgeRXZ wrote:
On Oct 11, 2:47 am, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
GeorgeRXZ said:

Hi Friends,
I have some questions related to C Language.
1> What is the difference between the standard C language and Non
standard C language ?
Standard C is C. "Non-standard C" is something that isn't C.

2> which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C language doesn't care which platform you use.

3> Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
C doesn't define Conio.h. If you want one, write your own.

4> Which is latest version of C ?
The barely-implemented ISO/IEC 9899:1999.

and who makes changes to the
language Syntax and Add new features or upgrade the language ?
ISO.

I have written some programs in C language and have uploaded the
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 ?
I looked at the list of problems you claim to have solved, and there's no
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?
.



Relevant Pages

  • Re: Is C99 the final C? (some suggestions)
    ... > that someone will try compile their stuff on an old compiler. ... > because the ANSI standard obsoleted them, and everyone picked up the ANSI ... fixed by using another language. ... >>are multiplying two expressions of the widest type supported by your ...
    (comp.lang.c)
  • Re: Forth Frustrations
    ... How would they even know what they are without being language lawyers? ... standard systems and a large number of nonstandard ones. ... interpreter, ... They set up four states -- HOST INTERPRETER COMPILER ...
    (comp.lang.forth)
  • Re: Forth Frustrations
    ... How would they even know what they are without being language lawyers? ... Then if you choose a standard system you can write code for it, ... interpreter, ... They set up four states -- HOST INTERPRETER COMPILER ...
    (comp.lang.forth)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > the standard language. ... Or did they just implemented some 80% of the new features? ... there was a fully compiant C compiler available. ...
    (comp.lang.ada)
  • Re: Teaching new tricks to an old dog (C++ -->Ada)
    ... > the standard language. ... Or did they just implemented some 80% of the new features? ... there was a fully compiant C compiler available. ...
    (comp.lang.cpp)