Type Definitions and structs
C provides a way to group a bunch of variables together, in what is called a struct.
A typedef is similar to a class in Java, but the typedef doesn�t have methods
C Corresponding Java
typedef struct { public class Pair {
int a; int a;
char ch; char ch;
} Pair; }
Previous slide
Next slide
Back to first slide
View graphic version