Search:

Type: Posts; User: sunny1778

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,568

    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
    1,024

    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
    1,229,811

    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
    23,898

    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
    10,117

    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
    1,065

    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,524

    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