Search
 
SCRIPT & CODE EXAMPLE
 

C

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;
Comment

PREVIOUS NEXT
Code Example
C :: c program to find area of circle 
C :: golden cobblestone modpack 
C :: print boolean value in c 
C :: remove on condtion in vec rust 
C :: grep find and replace 
C :: dvlprroshan 
C :: prime check in c 
C :: random number c 
C :: print 2d array in c 
C :: Successeur récurssive 
C :: execute maven project in cmd 
C :: c for schleife 
C :: add field to model rails 
C :: c Program to check if a given year is leap year 
C :: c style array 
C :: how to open a website in c 
C :: arduino uno spi pins 
C :: multiplication table in c using array 
C :: c char to lower case 
C :: c in array 
C :: typescript class as function parameter 
C :: ** in c 
C :: how to add 1 to 10 in c 
C :: solana-test-validator log 
C :: addition of matrix 
C :: class in oops 
C :: to execute a program using C 
C :: c program to find minimum of 5 numbers using conditional operator in c 
C :: insert image material ui 
C :: relational operators in c 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =