約107件1ページ目

日本語のみで絞り込む

2010/2/25 -Token-splicing, where you combine an identifier with another identifier by just concatenating their characters. This allows you to compare ...

10.12 How can I construct preprocessor #if expressions which compare strings? 10.13 Does the sizeof operator work in preprocessor #if directives? 10.14 Can ...

2005/11/14 -L.S.. How can I make certain code parts be compiled conditionally, depending on the definition of a macro such as: #define VERSION "2.3"

You can't do it directly; preprocessor #if arithmetic uses only integers. An alternative is to #define several macros with symbolic names and distinct ...

Stringification in C involves more than putting doublequote characters around the fragment; it is necessary to put backslashes in front of all doublequote ...

The preprocessor replaces the stringized arguments with string constants. The C compiler then combines all the adjacent string constants into one long string.

2021/8/3 -The number-sign or "stringizing" operator (#) converts macro parameters to string literals without expanding the parameter definition.

2023/5/9 -I want to compare if strings are equal or different, but it gives errors. Also can I comapare a string in a if statement with something like ...

2023/7/29 -In C and C++, you can compare two strings efficiently using the standard library function `strcmp()`. The `strcmp()` function is designed ...

The strcmp() function compares two strings and returns an integer indicating which one is greater. For this comparison characters at the same position from both ...