Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~205 People Reached
Favorite Forums
Favorite Tags

2 Posted Topics

Member Avatar for Faramba
Re: Size

[QUOTE=Faramba]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}; ---------------(1) static int b[SIZE]={0,2,4,6,8}; int x[SIZE-5]; int d[SIZE*2]; . . . . . . }[/QUOTE] You can re-write the statement (1) as follows: int a[] = {0,2,4,6}; void main() { …

Member Avatar for Richard Wong
0
112
Member Avatar for Richard Wong

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 …

Member Avatar for Chainsaw
0
93

The End.