My code is as follows:
void main()
{
int gdriver=DETECT, gmode;
initgraph(&gdriver, &gmode, " ");
getch();
closegraph();
}
Though the value of graphics mode(gmode) has not been initialized, its address has been passed into the program...and it compiles with no error!
Is it not wrong to pass the address of a variable without initializing that variable?