code_junkie

What is your single most effective interview question?

Nov 11th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. int main() {
  2. char *p = malloc(strlen("Hello"));
  3. strcpy(p, "Hello");
  4. printf("%s worldn"), p);
  5. }
  6.  
  7. $x = array( 1 => 2 , 2=> 3 );
  8. foreach( $x as $i => $v )
  9. {
  10. print "$x $i is $vn";
  11. }
  12.  
  13. for (i=0; i<10; i++) { printf("%dn", i); }
  14.  
  15. for (i=0; i<10; ++i) { printf("%dn", i); }
Add Comment
Please, Sign In to add comment