Question:

What is the purpose of goto (x,y) in C ?

by  |  earlier

0 LIKES UnLike

I know goto is used to jump to a location, but what is goto(x,y) used for? I found it in a program used to control an external electrical application through pc port.

 Tags:

   Report

3 ANSWERS


  1. do you meen gotoxy(x,y)?


  2. its used to place the cursor at a specific x, y location.  

  3. gotoxy() is a graphical  function defined in the <conio.h> for DOS . It's used to position the mouse cursor at a specific pixel on the screen .

    Exampel, gotoxy(10,10) will position the cursor at x coordinate = 10 and y

    coordinate = 10 .

    The x coordinate  starts from the top left edge of ur screen and goes to he right incrementing  , while the y coordinate starts fro mthe top left as well but incrementing to down .  

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.