Thread: Nested Functions in C

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    1

    Nested Functions in C

    Does C support nested functions?
    I could compile and run a program without errors with gcc but using the same program, i had problems compiling on msvc.
    anyone can advise me on this? Thank you!

  2. #2
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    C does support nested functions. I have never used msvc before, so I have no familiarity with it. I would suggest first looking through the compiler's options and documentation to see if it has a switch that won't allow nested functions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is it legal to have functions within functions?
    By Programmer_P in forum C++ Programming
    Replies: 13
    Last Post: 05-25-2009, 11:21 PM
  2. Nested array vs. tree
    By KONI in forum Tech Board
    Replies: 1
    Last Post: 06-07-2007, 04:43 AM
  3. Nested Classes
    By manofsteel972 in forum C++ Programming
    Replies: 4
    Last Post: 11-21-2004, 11:57 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  5. functions - please help!!!!
    By linkies in forum C Programming
    Replies: 1
    Last Post: 08-21-2002, 07:53 AM