#ifdef __USE_CMSIS #include "LPC17xx.h" #endif #include <cr_section_macros.h> #include <NXP/crp.h> __CRP const unsigned int CRP_WORD = CRP_NO_CRP ; [B]uint8_t pole[5];[/B] int main(void) { // TODO: insert code here [B]pole = {1,2,3,4,5}; // [COLOR=Red][B]<- IS IT CORRECT?[/B][/COLOR][/B] // Enter an infinite loop, just incrementing a counter volatile static int i = 0 ; while(1) { i++ ; } return 0 ; } |
pole[0] = 1; pole[1] = 2; pole[2] = 3; pole[3] = 4; pole[4] = 5; |
for (uint8_t i=0; i<5; i++) pole = i+1; |
uint8 pole[5] = {1,2,3,4,5}; |
[FONT=Arial][SIZE=1] [/SIZE][/FONT][FONT=Arial][SIZE=1][B]uint8_t pole[5];[/B][/SIZE][/FONT] [FONT=Arial][SIZE=1] int main(void) {[/SIZE][/FONT] [FONT=Arial][SIZE=1] [/SIZE][/FONT][FONT=Arial][SIZE=1] [B]pole = {1,2,3,4,5}; // [COLOR=Red][B]<- IS IT CORRECT?[/B][/COLOR][/B] [/SIZE][/FONT][FONT=Arial][SIZE=1]}[/SIZE][/FONT] |
uint8 pole[5] = {1,2,3,4,5}; |
uint8_t pole[5]; int main(void) { // TODO: insert code here // Enter an infinite loop, just incrementing a counter volatile static int i = 0 ; [COLOR=Red] memcpy(&pole[0],(uint8_t*)"\001\002\003\004\005",5);[/COLOR] while(1) { i++ ; } return 0 ; } |
uint8_t pole[5] = {1,2,3,4,5}; |