using typedef u define the static keyword as int and the statement static int j thus becomes int int j
hence the compiler gives the error "multiple storage class in declaration specifiers" -- Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad On Mon, Aug 8, 2011 at 12:29 AM, Kamakshii Aggarwal <[email protected]>wrote: > #include<stdio.h> > int main() > { > typedef static int *i; > static int j; > i a = &j; > printf("%d", *a); > getchar(); > return 0; > } > > what is the error in the code? > -- > Regards, > Kamakshi > [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
