Thread: How to write this code in pseudocode?

  1. #1
    Registered User
    Join Date
    Nov 2020
    Posts
    6

    Question How to write this code in pseudocode?

    Code:
    struct TIME  {   
        int seconds;
        int minutes;
    } open_time, close_time, difference;

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,428
    Since you don't care about the detail of how time is represented.

    TIME open_time, close_time, difference;
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    311
    difference = ( open_time - close_time ) ;
    "without goto we would be wtf'd"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lot of WRITE calls in parallel in C WRITE test code
    By Bobby1995 in forum C Programming
    Replies: 2
    Last Post: 04-28-2020, 08:47 AM
  2. is it ok to write code like this?
    By mangekyou in forum C Programming
    Replies: 11
    Last Post: 04-07-2019, 06:54 AM
  3. hi can i have a draft in c code of my pseudocode
    By biggysmall in forum C Programming
    Replies: 5
    Last Post: 11-21-2013, 07:45 PM
  4. help writing pseudocode into code for C puzzle
    By mgravier in forum C Programming
    Replies: 3
    Last Post: 03-21-2013, 02:14 PM
  5. how to convert a c source code into a pseudocode?
    By blogchama in forum C Programming
    Replies: 2
    Last Post: 01-20-2010, 03:07 PM

Tags for this Thread