LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2012, 01:17 AM   #16
SIG_SEGV
Member
 
Registered: Jul 2012
Location: Banglore, INDIA
Distribution: Fedora-Core
Posts: 70

Rep: Reputation: 11

The second place where you used Person for declaration looks as follows under the effect of typedef........

Person
{
char name[11];
int age ;
};


looks like-------------->

struct Person {} {
char name[11];
int age ;
};

Coz, Person is of type 'struct Person' which is empty structure..........Try above syntax, YOU WILL DEFINETLY GET THE SAME ERROR AND CONCLUDE YOURSELF THE WORKING OF "TYPEDEF"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C typedef notation. corp1126 Programming 6 11-24-2009 10:40 AM
typedef in C Oaks Programming 1 08-05-2009 09:49 AM
[C] The FAR in typedef koyi Programming 2 07-21-2006 07:37 PM
Can you help me with typedef? brownstone Programming 3 06-11-2004 10:09 AM
sizeof my typedef... jhorvath Programming 7 10-11-2002 05:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration