Skip to content

HCI 2015

Just another Kyoung Shin Park's Lectures Sites site

Recent Posts

  • 성적공지
  • 기말고사 답안지
  • Finals
  • Scribble
  • TemperatureColor

Recent Comments

    Archives

    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015

    Categories

    • C# Programming
    • Homework
    • Lecture Note
    • Uncategorized

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    Local variable

    https://msdn.microsoft.com/en-us/library/aa664742(v=vs.71).aspx

    The example

    void F() {
       int x = 1, y, z = x * 2;
    }
    

    corresponds exactly to

    void F() {
       int x; x = 1; // declared & initialized
       int y; // declaration only
       int z; z = x * 2; // declared & initialized
    }
    

     

     

    Posted on September 18, 2015December 24, 2024Author kparkCategories C# ProgrammingTags local variable

    Post navigation

    Previous Previous post: Instance Method vs Static Method
    Next Next post: lecture4
    Proudly powered by WordPress