Here is the class hierarchy that I have. I have a list of each type: EventE, EventF, EventG, EventH. They are added to the list through the constru ...
Here is the class hierarchy that I have. I have a list of each type: EventE, EventF, EventG, EventH. They are added to the list through the constru ...
The fact that a struct with a flexible array member is a type with which a variable can be declared and to which sizeof can be applied leads to an unu ...
I'm currently limited to coding in C and I want to do C object oriented programming. One thing that comes to mind is how to correctly downcast a type ...
The program below compiles without errors. Interestingly, when I set unsigned long my_addr = (unsigned long)addr_a + (unsigned long)addr_b the comp ...
I'm new to C programming language and I'm having a really difficult time trying to do this: I have a file .txt created by my program that store the le ...
Follow-up question for: If "shall / shall not" requirement is violated, then does it matter in which section (e.g. Semantics, Constraints) such requir ...
If "shall / shall not" requirement is violated, then does it matter in which section (e.g. semantics, constraints) such requirement is located? Reaso ...
How to determine w/o conversions that a given floating constant can be represented? Sample code: ...
Follow-up question for: Do unsupported standard features affect conformance?. Question: if an implementation supports extra features which are not de ...
Context: C compilers deliberately do not support some features while being conforming implementations. Is it ok? Some examples. All of the compilers ...
Consider this code (t0.c): Invocations: Questions: Which C rules allow to use in function declarator an identifier, which was previously def ...
Are HAS_SUBNORM and __STDC_IEC_559__ dependent? For example: If __STDC_IEC_559__ is 1, then HAS_SUBNORM is 1. If HAS_SUBNORM is 0, then __STDC_I ...
I'm a bit confused with a topic in the C17 standard. In 6.2.2, point 5 you can read: If the declaration of an identifier for a function has no st ...
It is known and useful features that: const type qualifier prohibits writing (modification) of a variable register storage-class specifier prohi ...
Both the C11 and C17 standards use terms “conversion specifier” and “format specifier”. Are they synonyms? If yes, then why introducing the synonyms? ...
Consider this simple code (t0.c): Invocation and output: Question: For conversion specifier %a, how: the exact format of hexadecimal floatin ...
In the late draft of C11 [C11_N1570] and C17 [C17_N2176] I fail to find the proof of the following (which, I believe, is commonly known): sizeof(short ...
Context: all the compilers except __MY_CC__ are not supported. However, how to permit only preprocessing with a 3rd-party compiler? UPD. The underl ...
I am quite surprised that C does not guarantee that certain (constant) expressions are evaluated at compile (translation) time. C11 (6.6 Constant exp ...
Simple question: if unary operators have near the highest priority, then why the order of evaluation of # and ## operators is unspecified? Relevant to ...