So, in C a “typedef” is a way to create (and name) custom data types . For something like a “typedef struct”, that is basically what a “class” is in Java. For a “typedef long int ….” there is no such thing — the only primitives in Java are the defined primitives.
What is typedef in Java?
So, in C a “typedef” is a way to create (and name) custom data types . For something like a “typedef struct”, that is basically what a “class” is in Java. For a “typedef long int ….” there is no such thing — the only primitives in Java are the defined primitives.