how can i write a n altered code to expand spaces into tab characters.....Code:
#include <stdio.h>
int main () {
int inChar;
while ((inChar=getchar() ) != EOF{
putchar(inChar);
}
}
PLS HELP ME
Printable View
how can i write a n altered code to expand spaces into tab characters.....Code:
#include <stdio.h>
int main () {
int inChar;
while ((inChar=getchar() ) != EOF{
putchar(inChar);
}
}
PLS HELP ME
Code:#include <stdio.h>
int main () {
int inChar;
while ((inChar=getchar() ) != EOF)
{
if(inChar == ' ')
putchar('\t');
else
putchar(inChar);
}
}