Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

global pointer assignment error

Nios 5.0.1 In global scope: char test[20]="teststring"; char *cp1 = &test[0]; //this works char *cp1; cp1 = &test[0]; //but this does not It all works inside a function, ...