I want to pass structures as argument parameters of a function. For eg suppose i have 2 structures:
struct set
{
int ms;
double code;
} settings={10,5.5};
struct trac
{
double freq[100];
double ip[100];
}trackres[5];
main()
{
}
And this runs through the main() code and gets its values. Now if i want to write a function which takes these values from the structures as inputs and gives me some calculated values as output. Is this syntax correct?
func_out= func_name(struct trackres[5], struct settings);
and also if i want to access the structures values within the function, can i use it as usual i.e
new_var=trackres[2].ip[10];
Thanks,
prads
This post has been edited by prads: 05 December 2007 - 05:20 AM

New Topic/Question
Reply




MultiQuote





|