Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > VLA parameters
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1031 of 1058
Post > Topic >>

VLA parameters

by Ben Bacarisse <ben.usenet@[EMAIL PROTECTED] > Mar 24, 2008 at 03:03 PM

I get a diganostic from:
-----------------------
#include <stdlib.h>

void f(int n, int a[n][n])
{
     exit(a[0][0]);
}

int main(void)
{
     int A[3][3] = {0};
     f(3, A);
}
-----------------------

The code looks fine to me.

-- 
Ben.
 




 1 Posts in Topic:
VLA parameters
Ben Bacarisse <ben.use  2008-03-24 15:03:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 18:43:57 CDT 2008.