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 the language defined by a standards body (ISO/IEC JTC1/
SC22/WG14). Non-standard C refers to vendor- or platform-specific
extensions to the language (additional keywords, headers, libraries,
etc.). All conforming compilers recognize standard C.
2> which is better C Lanugage, C under Linux/ Unix or C under
windows/ DOS ?
The C *language* is the same for each of those platforms -- the
differences come in the platform-specific extensions to the language.
And in that case, it's a wash; one is no better or worse than the
other.
3> Under Linux Platform why Conio.h and and many other header files
are not available in C Language Compiler ?
Because those are extensions specific to DOS/Windows. The core C
language does not have any built in support for display management
(including bitmap graphics), sound, networking, device input (such as
the keyboard), etc., so each vendor has their own set of extensions to
support that. Under linux, the closest equivalent to conio is curses.
4> Which is latest version of C ? and who makes changes to the
language Syntax and Add new features or upgrade the language ?
The latest version is C99, and the standards body I mentioned above is
responsible.
I have written some programs in C language and have uploaded the
source codes to my website.
http://zsoftwares.googlepages.com/CPrograms.htmlhttp://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 ?
Because you are using headers and functions specific to DOS/Windows
(conio.h, clrscr, etc.). To get this to run on linux, you would have
to replace conio.h and all the associated calls with a different
header (curses.h, clear, etc.)
By the way, use "int main(void)" instead of "void main()". main() is
supposed to return int.
[I am student of Computer Engg.]
you can mail me at (e-mail address removed)
GEOrgE