on ericwu
when you had those as separate files... you have called the create function as
create(front, end); // This is pass by value
and in create function create(struct data *front,...
Type: Posts; User: nilathinesh
on ericwu
when you had those as separate files... you have called the create function as
create(front, end); // This is pass by value
and in create function create(struct data *front,...
hi ericwu, here i modify your create function and also in main() to work correctly
inside main() call...as
create(&front,&end);
Thanks to all... but still i could not ensure is it compatible with C99 !?.. but i assume it is not... with all 'C' and doze off by collegue. :-)
quzah...
I understand that it is wrong to access the pointer as array.. But one of my collegue informed that it is compatible in C99 so i tried..
what is the wrong on it... !?
Dont think...
And now i tried this as below and it compiles.. i am not sure is it ok..
#include <stdio.h>
struct structag
{
int a;
struct structag *ptr;
};
Thanks salem...
since i dont want to declare it as array of pointers since, i dont know the size in the compile time, so i have declared this as pointer itself.. (i assume not wrong)
But...
Quzah.. Is my question is not understandable ...
I am not having a problem in posting it... But it is in my linux environment.. i am posting this question from XP...
hi
i am having an structure like
struct structag
{
datatype datavariable;
struct structag *ptr2struct;
Thanks grumpy ...
hi,
i have created a header file with guard and it looks like
somehead.h as
.
.
some #defines
.