Tuesday, 6 August 2013

In following code Why it prints only cd12345 from the left side part of carrige return in printf("abcd12345\rdhaval");,what is happened to...

In following code Why it prints only cd12345 from the left side part of
carrige return in printf("abcd12345\rdhaval");,what is happened to...

the output is
1 dhavalcd12345
the code is #include #include void main() { clrscr(); printf("1\n2");
getch(); printf("345"); getch(); printf("abcd12345\rdhaval"); getch();
printf("done"); getch(); }

No comments:

Post a Comment