![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl: printf indentation problem | wolwy_pete | Shell Programming and Scripting | 5 | 03-27-2008 08:09 PM |
| Problem with "printf" | Lokesha | UNIX for Dummies Questions & Answers | 1 | 02-07-2008 10:20 AM |
| printf | mirusnet | Shell Programming and Scripting | 4 | 01-23-2008 10:09 AM |
| printf | arunviswanath | High Level Programming | 2 | 09-19-2007 10:31 PM |
| awk printf problem | krishna | UNIX for Advanced & Expert Users | 6 | 11-18-2003 11:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hello everybody,
here is my problem: ________________________________________ #include <stdio.h> int main() { int i=10; printf("value is %i",i); return 0; } _________________________________________ when i compile and execute, nothing appears on screen!! but if i replace the printf line with this one: printf("value is %i\n",i); // i just added a \n then i can see the line displayed on my screen. ok, that's allright, but what if i want to display something _without_ the \n ? someone told me it was a classic buffer problem and adviced me to use fflush() but when i write: printf("value is %i",i); fflush(stdout); nothing happens. i also tried to put fflush(stdout) before the printf, because i don't know how to use this function correcly, but nothing happened. can someone explain me what's the matter?!! im using Linux Mandrake 8.0 thanks ![]() |
![]() |
| Bookmarks |
| Tags |
| linux mandrake |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|