Answers for "get operating system in javascript"

C++
0

how to get os name in c++

#include <stdio.h>

#if defined(_WIN32) || defined(_WIN64)
        const char* os = "Windows";
#else
#ifdef __linux
        const char* os = "Linux";
#else
        const char* os = "Unknown";
#endif
#endif

int main(void)
{
   printf("os = %sn", os);
   return 0;
}
Posted by: Guest on February-29-2020

Code answers related to "get operating system in javascript"

Browse Popular Code Answers by Language