C Programming - Typedef - Discussion

Discussion Forum : Typedef - Yes / No Questions (Q.No. 3)
3.
Are the properties of i, j and x, y in the following program same?
typedef unsigned long int uli;
uli i, j;
unsigned long int x, y;
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Vamshi said:   1 decade ago
Using typedef creation of new name for existing data type is possible but not data type because of these all the variables properties are same.

Rashmi said:   1 decade ago
The typedef provides fascility for creating new data type names.here uli is synonym to unsigned long int and uli can be used anywhere in place of unsigned long int.

Teju said:   1 decade ago
Can any body explain this ?

Post your comments here:

Your comments will be displayed after verification.