Thread: C Programming Arrays and Linked Lists

  1. #16
    Registered User
    Join Date
    Jun 2015
    Posts
    1,643
    Quote Originally Posted by MutantJohn View Post
    I'm scared to ask what you would think of nested ternary operators...
    You mean the quintnary operator?
    Code:
        n = a ? x : b ? y : z;
    Good stuff!

  2. #17
    Registered User
    Join Date
    Feb 2016
    Posts
    27
    I haven't even come across that yet...

  3. #18
    Registered User
    Join Date
    Jun 2015
    Posts
    1,643
    Quote Originally Posted by Amrita Ramnauth View Post
    I haven't even come across that yet...
    If you mean the "quintnary operator", I just made it up as a joke. It's just nested ternary operators.

    Anyway, the reason I didn't answer your question about shuffling is because I already answered it previously. If you don't read answers there's no reason for anyone to help you.

    Don't try to invent your own shuffling algorithm; it'll just be the usual idea of doing a bunch of swaps and crossing your fingers.

  4. #19
    Registered User
    Join Date
    Feb 2016
    Posts
    27
    Yes I realised it was answered already...thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Arrays of linked lists
    By Chuklol in forum C Programming
    Replies: 2
    Last Post: 04-17-2012, 06:45 PM
  2. pointers and linked lists in place of arrays
    By kordric in forum C++ Programming
    Replies: 8
    Last Post: 05-14-2008, 10:59 AM
  3. Arrays Vs Linked Lists
    By ianbd in forum C++ Programming
    Replies: 3
    Last Post: 08-31-2005, 08:41 AM
  4. From Python's Linked Lists to Dynamic Arrays
    By hexbox in forum C Programming
    Replies: 3
    Last Post: 01-26-2005, 03:14 PM
  5. linked lists / arrays
    By akira in forum C++ Programming
    Replies: 0
    Last Post: 11-27-2001, 01:01 AM

Tags for this Thread