Search:

Type: Posts; User: Jeet

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,660

    Duly noted. But actually my assignment was to...

    Duly noted. But actually my assignment was to replace the null terminator with a newline, the K&R question was a standard of how reversal should be handled.
  2. Replies
    11
    Views
    2,660

    You are correct, however not null terminating was...

    You are correct, however not null terminating was my choice not K&R's style.
  3. You should take a look here : Switch Case in C...

    You should take a look here : Switch Case in C and C++ - Cprogramming.com
    Also make use of functions, refactor your code.
  4. Replies
    11
    Views
    2,660

    My getline() is the bare minimum version as...

    My getline() is the bare minimum version as described in the first chapter. It's not the more advanced implementation.
  5. Replies
    11
    Views
    2,660

    Works perfectly ! Now I get it ! It was the...

    Works perfectly ! Now I get it ! It was the getchar() that ate my last character. Thanks for clearing it out ! I can't use fgets as it is not yet introduced in the text. Thanks for the help :) .
  6. Replies
    11
    Views
    2,660

    Made two functions and almost solved the problem...

    Made two functions and almost solved the problem but there's a small snag. One of my inputs token gets skipped ! Why is it behaving like that?


    #include <stdio.h>#include <stdlib.h>
    #define...
  7. Replies
    11
    Views
    2,660

    Reversing a line at a time !

    Well I was solving the K&R problem - Write a function reverse(s) that reverses the character string s . Use it to write a program that reverses its input a line at a time. I got the first part...
Results 1 to 7 of 7