wht function terminated by semicolon??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • singharchi
    New Member
    • Aug 2009
    • 6

    wht function terminated by semicolon??

    void Graphic::goRigh t(void)
    {
    int x;
    int y;
    x = whereX();
    y = whereY();
    gotoxy(x+1,y);
    };


    Q- why is this function terminated by semicolon(;)
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    What makes you think the function is terminated by a semicolon?

    Where did you find this code?

    Comment

    • akdemirc
      New Member
      • Sep 2008
      • 26

      #3
      the semicolon represents just an empty statement after the function definition, nothing else

      Comment

      Working...