Advertisement
mario_mos

gotom

Jul 24th, 2023
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <limits.h>
  3.  
  4. int main()
  5. {
  6. int i,j,k;
  7.  
  8. if( i == 0 && j == 0 && k == 0){
  9. goto zero;
  10. }
  11.  
  12. zero: printf( "Goto zero. i,j,k = %d\n", i,j,k );
  13.  
  14.  
  15.  
  16. return 0;
  17. }
  18.  
  19. /* resultat
  20. 10:06:25: Starting /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1...
  21. Goto zero. i,j,k = 0
  22. 10:06:25: /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1 exited with code 0
  23. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement