Results 1 to 4 of 4
hi,
Recently i was attended one interview, The interviewer has ask me , what is the difference u saw in c under windows and Linux ....
Can any body give ...
- 05-05-2007 #1Linux Newbie
- Join Date
- Oct 2006
- Posts
- 107
doubt on c
hi,
Recently i was attended one interview, The interviewer has ask me , what is the difference u saw in c under windows and Linux ....
Can any body give me the answer.....
Thanks in Advance
- 05-05-2007 #2
There is none really except for some function calls to the OS...
'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
--Abraham Lincoln
- 05-11-2007 #3
yes..i think with linux ,one can invoke OS system calls directly ...but in windows too we have init() functions...
other than is ,C is same at linux / windows ...
am i right
....are do we have much more difference??
i hope someone can provide much more detailed info.
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 05-11-2007 #4
The C language is identical under both. Both have ANSI C compilers, which is the C standard.
The difference comes when you look at the available libraries. For instance, under Linux, we have glibc. glibc adheres to the POSIX standard, and so implements a number of such functions. glibc also goes past the ANSI standard, and has a great many functions that do all sorts of fun stuff.
Windows uses the Win32 libraries, which have a similar purpose to glibc, but may use different names, may do different things, and does not also include the POSIX standard.
A good comparison might be threads. Under Linux, if you write a threaded application in C, you are using pthreads (POSIX threads). I know nothing about Win32, but it uses its own thread implementation, that works differently.DISTRO=Arch
Registered Linux User #388732


Reply With Quote