1) yeah i agree with u quzah, seems dumb of me to allocate memory to a ptr i don't use.
the idea is i want to ask for the size of the string from the user, and
allocate the memory of that size...
Type: Posts; User: kokopo2
1) yeah i agree with u quzah, seems dumb of me to allocate memory to a ptr i don't use.
the idea is i want to ask for the size of the string from the user, and
allocate the memory of that size...
hi people,
i am having some problems, perhaps understanding about how dynamic memory allocation works with pointers and arrays.
Im trying to get the user to input the size of the string in my...
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
struct VarData{
unsigned long var;
};
Hi guys, i like to thank all who has helped me so far. I managed to come up with some sort of code, to find the invalid string. e.g -8ha .
However im having problems getting it to print whether is...
sorry if i portray my qn not clearly enough...
but i really like to thank you for your time...
i would like to create a program which reads the content of the file and
break it into 'words'....
i see the problem now.
i believe i want to put the token into the array
but im having problems getting the token into an array
i tried char array[] = tokenPtr;
but returns a error, initializer...
Hi, im trying to find out of the content of the file is a number, not a number(operator/ char) and invalid number.
number = 12, -14 etc
not a number = +, -, /, *, da, etc
invalid number =...