Is there any good editors out there which shows the "methods - functions" on the left hand side, so that we can skip from one function code to another just by clicking the methods (function).
I am...
Type: Posts; User: terminator
Is there any good editors out there which shows the "methods - functions" on the left hand side, so that we can skip from one function code to another just by clicking the methods (function).
I am...
But the code compiles and gives the correct answer, even if I only use (char *) instead of (char **). Why's that?
[code]
Is (char **) casting equivalent to char **ptr declaration?
[QUOTE=swoopy;744337]
>int compare (const void *p1, const void *p2)
>{
> const char *i;
> const char *j;
>
> i = *((char **)p1); //IF p1 & p2 are strings... what am I doing here?
> j =...
dereferencing char* gives a char which is NOT a "string", but just a character, i.e. first character of a string. Right?
Ahh... this guy is a good guy.
But wait... what's the meaning of "integral type"?
Also, dereferencing char* gives a char which is NOT a "string", but just a character, i.e. first character of a...
Can you "simplify" a bit what you just said.
It's bouncing in my head...
Why would compiler convert it to an "int", where in the code am I converting integer to a pointer? Also, I am using casting.
int main( )
{
char *words[ ] = { "Then", "he", "shouted", "What", "I",
"didn't", "hear", "what", "you", "said" };
int j = 0;
int n = sizeof(words) / sizeof(char...
int main( )
{
char *words[ ] = { "Then", "he", "shouted", "What", "I",
"didn't", "hear", "what", "you", "said" };
int j = 0;
int n = sizeof(words) / sizeof(char...
Is this how it works???
char **c;
char **d;
*c[0] = "I am a string";
*d[0] = "I am also a string";
Anyone can draw a diagram of this?
From what I understand, "void *" is just a generalized function argument, it can take any type of pointer.
Also, in qsort... why is it written only...
I already know all of the above but, what's the use of (char **)???
p1 & p2 are pointers to "VOID"...
Do we have to use (char **) casting for all the "VOID" argument types? or does it depend on the...
there is only little explanation about pointer to pointer...
Is there any good book or website with examples?
What's the reason for putting back the "read" character back onto the "buffered stream"?
- Is it to create a "white space" between the words?
Is there any good book or website covering this complex pointer declarations & casting?
sheesh... why don't you guys answer my questions to the "point"! This is the first forum where I didn't understand any of the answers to my questions.
again what does ungetc(c, fp) do in the code?
Can you give an example on this?
Can anyone look at the code below and answer the question given in the code...
int compare (const void *p1, const void *p2)
{
const char *i;
const char *j;
Can anyone look at this simple code and tell me what does ungetc(c,f) does in the code?
Why is it pushing back on the stream the returned character.
int getNextWord (FILE *f, char **pword)
{...
Whatever tapstop said above is going "bouncer" in my head...
can anyone give me a "simpler" explanation?
I am getting "round about" answers...
can i please get answer uptothepoint?
-stream means what?
-evaluate stream more than once mean what?
also, whats the use of
ungetc(int c, FILE...
what does it mean?
"It can access the file stream twice"?
a stream is a set of characters terminated by a newline character....
I want to know the following:
getc can access the stream more than once mean what?
similar to getchar?
What's the meaning of the following:
int getc(FILE *stream)
getc is equivalent to fgetc except that if it is a macro, it may evaluate stream more than once.
What the meaning of it?
if...
I want my code to be explained not another code. I don't understand the use of "pointer to pointer" in the function argument.