got it...thanks On Mon, Aug 8, 2011 at 12:39 AM, aseem garg <[email protected]> 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 <[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. > -- 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.
