C Programming - C Preprocessor - Discussion

Discussion Forum : C Preprocessor - Yes / No Questions (Q.No. 2)
Would the following typedef work?
typedef #include l;
Answer: Option
Because typedef goes to work after preprocessing.
4 comments Page 1 of 1.

Deepa.l said:   5 years ago
Please explain more about it with the example code.

Ridha said:   7 years ago
typedef struct name
int roll_no;

Now you can treat the name as a datatype.
name n1;
But it's done after the preprocessing and #include is replaced by exact files during preprocessing hence wrong.

Ramya said:   8 years ago
Please clear explanation.

Mohamed A said:   9 years ago
Why can any one explain ?

typedef is written in preprocessor space and should be treated as #define for example ?

Post your comments here:

Your comments will be displayed after verification.