Find the answer to your Linux question:
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 ...
  1. #1
    Linux 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

  2. #2
    Linux User tech_man's Avatar
    Join Date
    Jan 2007
    Location
    USA
    Posts
    385
    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

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    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
    -------------------

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...