Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C Linked lists in QM
#4
1. The C typedef defines 2 names for the same struct - node and t_node. You don't need 2 names. Your type declaration is correct. When need a typedef:

type node int'val node*next
type node_t :node ;;like C typedef

2. Correct. C while translates to rep+if.


Messages In This Thread
C Linked lists in QM - by ldarrambide - 02-03-2019, 05:31 PM
RE: C Linked lists in QM - by Gintaras - 02-03-2019, 05:51 PM
RE: C Linked lists in QM - by ldarrambide - 02-03-2019, 06:07 PM
RE: C Linked lists in QM - by Gintaras - 02-03-2019, 06:31 PM
RE: C Linked lists in QM - by ldarrambide - 02-04-2019, 04:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)