Is there any difference in a typedef struct and a normal struct? This works just as expected either way:
Is there any benefit from any way? Thanks !Code:#include <iostream> using namespace std; typedef struct { int x, y; } Point; struct Point2 { int x, y; }; int main() { Point p; Point2 p2; p.x = 3; p.y = 2; p2.x = 8; p2.y = 45; cout << p.x << " " << p.y << " " << p2.x << " " << p2.y << endl; return 0; }