Search:

Type: Posts; User: abh!shek

Search: Search took 0.01 seconds.

  1. Thread: Program hangs

    by abh!shek
    Replies
    4
    Views
    3,850

    Got it working #include int...

    Got it working



    #include<stdio.h>
    int main()
    {
    FILE *fin,*fout;
    int ch,flag=0,count;
    char temp[20];
  2. Thread: Program hangs

    by abh!shek
    Replies
    4
    Views
    3,850

    I wonder if I declare ch as an int, how will...

    I wonder if I declare ch as an int, how will these things react:


    because temp[i] is char and ch is int...

    I did change ch to int but the program still behaves the same for some reason :-/
  3. Thread: Program hangs

    by abh!shek
    Replies
    4
    Views
    3,850

    Program hangs

    This is supposed to reverse every word in a file. From the command line output looks like its stuck somewhere.



    /*Reverse every word in a file*/

    #include<stdio.h>
    int main()
    {
    FILE...
Results 1 to 3 of 3