English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to start programming with C. But I wan't to know if i have to change my operating system to program using C.

2006-07-01 16:22:06 · 4 answers · asked by zdg8 1 in Computers & Internet Software

4 answers

Your question seems a little bit confused. C is a programming language; Linux is an operating system. You can most certainly program in C under either Windows XP or under Linux. If you are careful to write your programs so that you stick to the C language [ISO] standard, you will be able to to compile them on either system.

Beware, though, that the language standard is (intentionally) silent on things like GUIs -- C can be used for embedded devices, too. Interfaces like this are platform-dependent. The POSIX standards are the closest thing there is to a common set of interfaces.

If you want a Linux-like environment under Windows, check out the Cygwin package. The GNU C compiler is available free for multiple platforms. The canonical textbook for C is Kernighan and Ritchie, "The C Programming Language (2nd Edition)". You will probably also benefit from reading the FAQ for the USENET newsgroup comp.lang.c.

2006-07-01 17:11:55 · answer #1 · answered by richg74 3 · 0 1

You can program in windows, you will need to download a compiler at the very least, and I recomend finding an IDE. You can find all of these at SourceForge.net. The only restriction is that any compiled program will only run on the operating system you compiled it on, but if you write the code without using OS specific libraries you can compile the same source on multiple OSes.

2006-07-01 16:27:36 · answer #2 · answered by John J 6 · 0 0

If you want a Unix/Linux-like environment within your Windows system, get the free utility "Cygwin". It will include the "gcc" (GNU C compiler), and file editors like "vi" and "emacs" with which you can create C program files.

2006-07-01 16:29:17 · answer #3 · answered by weebl 2 · 0 0

You should proabably understand computers first, then start with the programming.

For C, all you need is a windows XP compiler

2006-07-01 16:25:58 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers