got it...thanks On Mon, Aug 8, 2011 at 12:39 AM, aseem garg <ase.as...@gmail.com> wrote:
> typedef doesn't declare an instance of a variable, it declares a type (type > alias actually), > > static is a qualifier you apply to an instance, not a type, so you can use > static when you use the type, but not when you define the type. > Aseem > > > > On Mon, Aug 8, 2011 at 12:29 AM, Kamakshii Aggarwal <kamakshi...@gmail.com > > 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 >> kamakshi...@gmail.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> 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 algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Regards, Kamakshi kamakshi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.