Search:

Type: Posts; User: devilhaunts

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,423

    @quzah & citizen Both of your ideas work....

    @quzah & citizen

    Both of your ideas work. Thanks.
  2. Replies
    11
    Views
    1,423

    I know, that's how C++ does it. I hope the...

    I know, that's how C++ does it. I hope the comment was not directed at me.
  3. Replies
    11
    Views
    1,423

    That certainly makes more sense.

    That certainly makes more sense.
  4. Replies
    11
    Views
    1,423

    I know how that works.

    I know how that works.
  5. Replies
    11
    Views
    1,423

    i m calling them from main. int main() {...

    i m calling them from main.



    int main()
    {
    char *i,*j;
    char *str = "something";

    //At the point of calling swap below i = str and j is pointing to the last char of str
  6. Replies
    11
    Views
    1,423

    Swap problem

    Hi
    I had been working on some code and I had to reverse a string. I tried to use the swap function as follows:



    void swap(char *i, char *j)
    {
    char temp = *i;
    *i = *j;
    *j = c;
  7. Replies
    3
    Views
    1,752

    Thanks Hmm, all this while I hadn't known this....

    Thanks
    Hmm, all this while I hadn't known this. I never saw scanf behaving like that before. Is it because of the while loop?
  8. Replies
    3
    Views
    1,752

    Scanf behavior

    Hi all
    I found this weird problem which I hadn't seen before. I was working on Cygwin (the problem later replicated on a real linux box as well). I was writing a program where I needed to do...
Results 1 to 8 of 8