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
<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.

Reply via email to