Perl

Swig Starter Kit 0.0.3 Released - New Language Support

Release 0.0.3 of Swig Starter Kit was just released.

This release adds support for the following languages:

  • Perl
  • Python
  • Ruby
  • Java
  • C#

There is also preliminary support for PHP added, the PHP module builds but I cannot get it to load. Anyone with experience with this, please help if you can.

Do You Know What ++i And i++ Really Do?

An interviewer who thinks he is being clever might present you with a code sample like the following and ask you what the output would be:

//C
#include <stdio.h>
 
void dosomething(int i, int j, int k, int l)
{
  printf("%d, %d, %d, %d\n", i,j,k,l);
}
 
int main(int argc, char **argv)
{
  int i =1;
  dosomething(i++, ++i, i++, ++i);
 
  i = 1;
  printf("%d\n", i++ + ++i + i++ + ++i);
 
  i = 1;
  printf("%d\n", (i++) + (++i) + (i++) + (++i));
}

Syndicate content