Horje
variably modified ‘_memory’ at file scope Code Example
variably modified ‘_memory’ at file scope
//test.h
static const int size = 10;
#define GOOD_SIZE 10 // GOOD_SIZE will be replace by 10 during the compilation

typedef struct titi_s {
 	char toto[size]; 		// can't compile because size is a int and you can't have static array with value of variable size
  	char tutu[GOOD_SIZE]; 	// can compile because GOOD_SIZE is not an int
} titi_t;




C

Related
remove anaconda completely ubuntu Code Example remove anaconda completely ubuntu Code Example
bootstrap 5 modal not working vue js 3 Code Example bootstrap 5 modal not working vue js 3 Code Example
octave sum all elements in matrix Code Example octave sum all elements in matrix Code Example
grep find and replace Code Example grep find and replace Code Example
stackoverflow Code Example stackoverflow Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11