Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cornell!uw-beaver!entropy!dataio!gtenmc!csp From: csp@gtenmc.UUCP (Charudutta S. Palkar) Newsgroups: comp.lang.c Subject: Will it execute everywhere ? Message-ID: <831@gtenmc.UUCP> Date: 28 Jul 90 00:15:02 GMT Reply-To: csp@gtenmc.UUCP (Chardutta S. Palkar) Distribution: na Organization: GTE Telecom, Inc. Bothell, WA Lines: 23 This is to avoid the usage of varargs. The only restriction is to pass number of arguments as the first parameter. Will this piece of code execute irrespective of the order in which the parameters are pushed on the stack ie. right to left or left to right? This is executable on Unix V.3 on a VAX-8000. void ftest(n) int n; { char **p; p = (char **)( &n + 1 ); while( n-- ) printf("%s",*p++); } main() { ftest(2,"Rama ","Sita "); ftest(4,"\n","Xxxx ","Sita ","\n"); }