Search:

Type: Posts; User: terminator

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: code EDITOR

    by terminator
    Replies
    12
    Views
    2,820

    code EDITOR

    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...
  2. Replies
    56
    Views
    24,318

    But the code compiles and gives the correct...

    But the code compiles and gives the correct answer, even if I only use (char *) instead of (char **). Why's that?
  3. Replies
    56
    Views
    24,318

    [QUOTE=terminator;744339] [code] Is (char...

    [code]

    Is (char **) casting equivalent to char **ptr declaration?
  4. Replies
    56
    Views
    24,318

    [QUOTE=swoopy;744337] >int compare (const void...

    [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 =...
  5. Replies
    56
    Views
    24,318

    dereferencing char* gives a char which is NOT a...

    dereferencing char* gives a char which is NOT a "string", but just a character, i.e. first character of a string. Right?
  6. Replies
    56
    Views
    24,318

    Ahh... this guy is a good guy. But wait......

    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...
  7. Replies
    56
    Views
    24,318

    Can you "simplify" a bit what you just said....

    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.
  8. Replies
    56
    Views
    24,318

    Example Of 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...
  9. Replies
    56
    Views
    24,318

    Example Of 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...
  10. Replies
    56
    Views
    24,318

    example

    Is this how it works???




    char **c;
    char **d;
    *c[0] = "I am a string";
    *d[0] = "I am also a string";
  11. Replies
    56
    Views
    24,318

    Anyone can draw a diagram of this? From what...

    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...
  12. Replies
    56
    Views
    24,318

    char ** for void type?

    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...
  13. Replies
    56
    Views
    24,318

    there is only little explanation about pointer to...

    there is only little explanation about pointer to pointer...
    Is there any good book or website with examples?
  14. Replies
    6
    Views
    1,572

    What's the reason for putting back the "read"...

    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?
  15. Replies
    56
    Views
    24,318

    Is there any good book or website covering this...

    Is there any good book or website covering this complex pointer declarations & casting?
  16. Replies
    6
    Views
    1,572

    sheesh... why don't you guys answer my questions...

    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?
  17. Replies
    56
    Views
    24,318

    Can you give an example on this?

    Can you give an example on this?
  18. Replies
    56
    Views
    24,318

    casting - pointer to pointer

    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;
  19. Replies
    6
    Views
    1,572

    role of ungetc in the code

    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)
    {...
  20. Replies
    13
    Views
    1,992

    Whatever tapstop said above is going "bouncer" in...

    Whatever tapstop said above is going "bouncer" in my head...
    can anyone give me a "simpler" explanation?
  21. Replies
    13
    Views
    1,992

    I am getting "round about" answers... can i...

    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...
  22. Replies
    13
    Views
    1,992

    what does it mean? "It can access the file...

    what does it mean?
    "It can access the file stream twice"?

    a stream is a set of characters terminated by a newline character....
  23. Replies
    13
    Views
    1,992

    I want to know the following: getc can access...

    I want to know the following:

    getc can access the stream more than once mean what?

    similar to getchar?
  24. Replies
    13
    Views
    1,992

    getc stream evaluation

    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...
  25. Replies
    6
    Views
    1,418

    I want my code to be explained not another code....

    I want my code to be explained not another code. I don't understand the use of "pointer to pointer" in the function argument.
Results 1 to 25 of 31
Page 1 of 2 1 2