CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Threaded View

  1. #5
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Thumbs up Re: problem getting function to change value of array element

    Thanks for pointing out mistakes, Paul

    I'm sorry i got result what the OP is asking for. I didnt know that this was a risky method.

    And, about the main() i strongly believe i had seen somewhere in a Microsoft page where they says main can return void type also.

    and, if i'm compiling a program in MSVC with void main() no compiler errors or warnings are thrown out. The standard(as per C99) suggests main should return int.

    But i'm confused with the Microsoft statement and C99 standard suggestion.

    Here is the MSDN link i had.

    http://msdn.microsoft.com/en-us/libr...wh(VS.80).aspx
    Last edited by CoolPG; December 16th, 2009 at 10:51 PM.
    "I studied everything but never topped. Today, toppers of the world's best universities are my employees"

    -William Henry Gates (Bill Gates)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured