M
manochavishal
Hi,
int main(int argc, char **argv)
{
int j;
printf("Word id %s",argv[1]);
}
This never used to happen.
I have always seen people saying that use \n in printf statement ie
printf("Hello\n");
as it works out as fflush but i never paid attention.
But this time my prog was not printing what it was suppose to print .
But i used '\n' and it printed.
Can anybody explain why we should use this in *detail* . As i want to
know the *detail* reason for this behaviour.
Thanx in advance.
int main(int argc, char **argv)
{
int j;
printf("Word id %s",argv[1]);
}
This never used to happen.
I have always seen people saying that use \n in printf statement ie
printf("Hello\n");
as it works out as fflush but i never paid attention.
But this time my prog was not printing what it was suppose to print .
But i used '\n' and it printed.
Can anybody explain why we should use this in *detail* . As i want to
know the *detail* reason for this behaviour.
Thanx in advance.