[CLN-list] how to assign cl_I type to structure number
Ron Garret
ron at flownet.com
Sat Feb 4 22:53:00 CET 2006
On Jan 31, 2006, at 1:23 AM, mahesh ram wrote:
> i am r.seetaram, M.Tech, C.S.
> i have faced the following problem:
> cl_I val=10;
> struct node
> { cl_I data;
> struct node * link;
> };
> struct node * start=NULL;
> start = (struct node *) malloc(sizeof(struct node));
> start->data = value; // error in this line;
>
At the risk of pointing out the obvious, you don't have a variable
named value, but you do have one named val.
rg
More information about the CLN-list
mailing list