sanjay nayak has asked for the wisdom of the Perl Monks concerning the following question:
#!C:\Perl\bin\perl.exe -w #Inline.pl use Inline C; print "9+16=", add(9,16),"\n"; print "9-16=", subtract(9,16),"\n"; _END_ _C_ int add(int ,int ); int subtract(int ,int ); int add(int x, int y) { return x + y; } int subtract(int a, int b) { return a - b; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What is the problem in the following Inline code?
by moritz (Cardinal) on Jan 13, 2009 at 07:57 UTC | |
by sanjay nayak (Sexton) on Jan 13, 2009 at 09:05 UTC | |
by cdarke (Prior) on Jan 13, 2009 at 09:24 UTC | |
by Anonymous Monk on Jan 13, 2009 at 10:37 UTC | |
by sanjay nayak (Sexton) on Jan 13, 2009 at 12:51 UTC | |
by syphilis (Archbishop) on Jan 13, 2009 at 17:38 UTC | |
|