This code work's fine :
int main()
{
while(1){
printf("hi\n");
sleep(1);
}
return 0;
}
Output: hi hi hi ...
but when we remove '\n' it will print nothing?
int main()
{
while(1){
printf("hi");
sleep(1);
}
return 0;
}
Output: NO OUTPUT
Plz anyone give explaination of this behaviour :)