Search:

Type: Posts; User: Prestige

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,091

    So, modifying this part will work ? ...

    So, modifying this part will work ?



    while(fscanf(fp1, "%d", &n) > 0)
    printf("%d\n", n);

    How does feof work exactly ?
  2. Replies
    3
    Views
    2,091

    Printing a file

    I had written the following code which does the following:
    It takes in a series of integers as input.
    It prints all the integers that come before 42 has been input (assumes that the user inputs 42...
Results 1 to 2 of 2