Hello everyone. I have been reading "The C Programming Language", and one of the examples seems to not work for me. At least it doesn't work in windows. In linux it works fine, but in windows the following code gives me these errors and warnings:
Line 11: return type is an incomplete type
Line 12: storage size of 'temp' isn't known
Line 15: [Warning]'return' with a value, in function returning void
Using the Dev C++ compiler latest version.
Thanks in advance for any help to my problem.Code:#include <stdio.h> int main(void) { struct point {int x; int y;}; struct rect {struct point pt1; struct point pt2;}; } struct point makepoint(int x, int y) { struct point temp; temp.x = x; temp.y = y; return temp; }