Search:

Type: Posts; User: sunny1778

Search: Search took 0.01 seconds.

  1. You can use pointers. It is the fastest and the...

    You can use pointers. It is the fastest and the best solution.
  2. Replies
    4
    Views
    850

    Hi, Try out this piece of code. It should work...

    Hi,

    Try out this piece of code. It should work for you.



    char buf[1000];
    FILE *fp;

    fp = fopen("myfile.txt","r");
  3. Replies
    160
    Views
    276,365

    Sticky: "Understanding Pointers in C" by Yashwant...

    "Understanding Pointers in C" by Yashwant Kanetkar.

    Its a very nice book, contains nice examples and easy to understand. It is best for the beginners.
  4. Replies
    11
    Views
    18,501

    This might be due to printf statements, because...

    This might be due to printf statements, because printf statements return int (i.e. no of characters printed). So, just use "return;" in the end. It should solve the problem.
  5. Replies
    8
    Views
    7,717

    You can use strcmp. Its short and simple. Just...

    You can use strcmp. Its short and simple. Just put an extra check for buffer overflow.
  6. Replies
    6
    Views
    912

    Are you able to see 00, 01, 02 ... for "rank"?

    Are you able to see 00, 01, 02 ... for "rank"?
  7. Replies
    6
    Views
    1,081

    It seems like "ptr" is not assigned properly....

    It seems like "ptr" is not assigned properly. Please check its assignment.
Results 1 to 7 of 7