Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C typedef

// Typedefs can also simplify definitions or declarations for structure pointer types. Consider this:

struct Node {
    int data;
    struct Node *nextptr;
};
// Using typedef, the above code can be rewritten like this:

typedef struct Node Node;

struct Node {
    int data;
    Node *nextptr;
};
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #C #typedef
ADD COMMENT
Topic
Name
8+6 =