Skip to main content

Timeline for Decompose a permutation into cycles

Current License: CC BY-SA 2.5

5 events
when toggle format what by license comment
Mar 22, 2011 at 7:46 history edited 6502 CC BY-SA 2.5
better description of why that code is not "C"
Mar 22, 2011 at 7:17 comment added 6502 @Debanjan: No it's not ANSI C (not even 89). For example the standard says (3.3.2.2) that if a function uses a variable number of arguments then it cannot be declared implicitly at the function call site (in other words you cannot call scanf without #include <stdio.h> even if the parameters are correct and do not require conversions): <<If the function is defined with a type that includes a prototype, and the types of the arguments after promotion are not compatible with the types of the parameters, or if the prototype ends with an ellipsis ( ", ..." ), the behavior is undefined.>>
Mar 22, 2011 at 1:06 comment added Quixotic This is a valid C program,but this is not C99.
Mar 20, 2011 at 8:15 history edited 6502 CC BY-SA 2.5
added 2 characters in body
Mar 20, 2011 at 8:09 history answered 6502 CC BY-SA 2.5