No.

In C++ you can't either.  You can declare a new class that _extends_ a
previous one, but you can't change a declaration once it's complete.

On Jun 8, 11:38 am, HARSHIT PAHUJA <hpahuja.mn...@gmail.com> wrote:
> is it possible to override struct definition in c ????
>
> in header.h header file i have
> eg
> typedef struct a
> {
> int ab ;
>
> }
>
> nw in .c file i have included header.h
>
> typedef struct a
> {
> char c ;
> int b;
>
> }
>
> and giving following def i m getting an error ...
>
> *'struct type redefinition'*
>
> So anyways in c anyways to override this error , like in c++ or c# we use
> virtual keyword
>
> --
> HARSHIT PAHUJA
> M.N.N.I.T.
> ALLAHABAD

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