No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Sorry for bother you with this dumb questions... I understand very well math but I'm a noob in C... Hope to "evolve" :( Anyway I manipulate a simple binary tree this way: [CODE=C] typedef struct _node *tree; struct _node { char *name; double val; tree left; tree right; }; void … |
|
Hi, it's me again... I've some problems understanding why my program hang up; I've this code: [CODE=C] #include <stdio.h> void foo ( char **bar ) { *bar = "foobar"; /* Runs perfectly */ **bar = 'b'; /* Cause a crash */ } int main() { char *bar; foo ( &bar … |
|
Hi all, this is my first post! I'm pretty new to C and maybe this is a dumb question. I've a function that accept a string as a parameter for modify it but it doesn't (I'm sure there is some logical mistake with pointers): [CODE=C] void doSomething(char *string) { string … |