[Dev-C++] struct as function parameter
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <sta...@aq...> - 2002-05-24 08:00:05
|
again
program below doesnt work under devcpp 4.9.3
#include <stdio.h>
struct name {
some structure data
};
void fun(struct name s)
{
printf("ok");
}
int main(void)
{
struct name s;
fun(s);
return 0;
}
it never prints "ok"
regards, stan
|