Part Number: MSP430G2553
Tool/software: Code Composer Studio
Hello,
I have made two structure in my project first structure member will constant but the variable not define constant and second structure member and variable both define constant so what will exactly difference both structure memory point of view?
My first and second structure where is it store in memory like (RAM or FLASH pls be specified this)
In my both structure which one structure is constant?
1.
#define mac 2
struct student{
const unsigned int max;
const unsigned int min;
}stu[mac]={
{.max=10,.min=20},
{.max=30,.min=40}
};
2.
struct student{
const unsigned int max;
const unsigned int min;
}const stu[mac]={
{.max=10,.min=20},
{.max=30,.min=40}
};