#include<stdio.h>
#include<stdlib.h>
int main()
{
   int i;
   for(i=1; i<=255; i++)
   {
       printf("%d %c\n",i,i);
   }
}
Hi, I am working on exiting i / o forwarding and I am stuck in the output of the ascii table from the command line. I have done it.
C:\New folder\practice> main.exe > temp.txt
C:\New folder\practice> type temp.txt
and after pressing input (after type temp.txt) it displays only the first 26 numbers. My question is why?
Also can someone explain to me how easy it is to copy the code to a text file using redirection. I know how to do this using FILE I / O.
source
share