How it works?
- From: "Mohan" <mohan.smvec@xxxxxxxxx>
- Date: 29 Apr 2006 16:36:10 -0700
Hi Friends,
The following code is working fine and printing the string "Mohan S".
#include<stdio.h>
int main()
{
FILE *fp;
fp=stdout;
fprintf(fp,"%s","Mohan S");
}
My doubt is how it is possible to assign a standard output stream to a
file stream....Why it didn't throw any error;instead its running
fine...
Can anyone give me clear explanations... ?
Thanks in advance...
Mohan Shanmugam
.
- Follow-Ups:
- Re: How it works?
- From: Barry Schwarz
- Re: How it works?
- From: Mike Wahler
- Re: How it works?
- Prev by Date: Re: Finding a perfect number.
- Next by Date: Re: Boost process and C
- Previous by thread: Microsoft job posting - C/C++ required
- Next by thread: Re: How it works?
- Index(es):
Relevant Pages
|