Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-24-2012, 02:17 AM   #16
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........

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"


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 11:40 AM
typedef in C Oaks Programming 1 08-05-2009 10:49 AM
[C] The FAR in typedef koyi Programming 2 07-21-2006 08:37 PM
Can you help me with typedef? brownstone Programming 3 06-11-2004 11:09 AM
sizeof my typedef... jhorvath Programming 7 10-11-2002 06:41 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:38 PM.

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