#include<stdio.h>#include<float.h>intmain(void){/* float型の最小値と最大値 */printf("FLT_MIN = %e\n", -FLT_MAX);printf("FLT_MAX = %e\n", FLT_MAX);/* double型の最小値と最大値 */printf("DBL_MIN = %e\n", -DBL_MAX);printf("DBL_MAX = %e\n", DBL_MAX);#ifdefLDBL_...
/* MinGWかCLかによって出力文字列を変更 gcc sample.c -o sample cl sample.c */ #include <stdio.h> int main(void) { #ifdef __MINGW64__ printf("MinGW"); #else printf("Not MinGW"); #endif return 0; } グローバル変数の共有 グローバル変数をプロセス間で共有する場合は、 Visua...
31#ifdef __cplusplus 32extern "C" 33#endif 34void 35#if defined(__STDC__) || defined(__cplusplus) 36TOUPPER(TPSVCINFO *rqst) 37#else 38TOUPPER(rqst) 39TPSVCINFO *rqst; 40#endif 41{ 42int i; 43 44for(i = 0; i < rqst->len-1; i++) ...
P2334R1 preprocessing directives elifdef and elifndef no P2360R0 Extend init-statement to allow alias-declaration no P2362R3 Remove non-encodable wide character literals and multicharacter wide character literals no P2437R1 Support for #warning no P2448R2 Relaxing some constexpr...
31 #ifdef __cplusplus32 extern "C"33 #endif34 void35 #if defined(__STDC__) || defined(__cplusplus)36 TOUPPER(TPSVCINFO *rqst)37 #else38 TOUPPER(rqst)39 TPSVCINFO *rqst;40 #endif41 {42 int i;43 44 for(i = 0; i < rqst->len-1; i++)45 rqst->data[i] = toupper(rqst-...
P2334R1 preprocessing directives elifdef and elifndef no P2360R0 Extend init-statement to allow alias-declaration no P2362R3 Remove non-encodable wide character literals and multicharacter wide character literals no P2437R1 Support for #warning no P2448R2 Relaxing some constexpr...