GUI/Maximum window dimensions: Difference between revisions

Added C implementation.
(Added C implementation.)
Line 99:
</pre>
 
=={{header|C}}==
==={{Windows}}===
The following implementation has been tested on Windows 8.1, may not work on Linux systems.
<lang C>
/*Abhishek Ghosh, 3rd October 2017*/
 
#include<windows.h>
#include<stdio.h>
 
int main()
{
printf("Dimensions of the screen are (w x h) : %d x %d pixels",GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));
return 0;
}
</lang>
Output :
<pre>
Dimensions of the screen are (w x h) : 1536 x 864 pixels
</pre>
=={{header|Creative Basic}}==
<lang Creative Basic>
503

edits