No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Are the following array declarations valid, if not why?: "i'm confused!" const int SIZE=4; void main() { int a[SIZE]= {0,2,4,6}; static int b[SIZE]={0,2,4,6,8}; int x[SIZE-5]; int d[SIZE*2]; . . . . . . } | |
Goal: I would like to assign the content of a known function to a function pointer in LINUX environment. Problem: Get segmentation fault when running the function pointer after assignment. Procedure: 1). declare a funtion pointer. 2). Allocate memory space to the function pointer using the function' malloc' 3). Copy … |