Sir pls tell me how to create .I file (extended source file) in c
+2
A:
A common way to create files in C
is with the fopen()
function.
#include <stdio.h>
FILE *handle;
handle = fopen("extended.I", "w");
if (handle != NULL) {
/* ... */
fclose(handle);
}
pmg
2010-09-21 13:21:26
no this is not my answer
Chhavi Agrawal
2010-09-21 13:32:38
given the ambiguity of the query, this seems like a perfectly sane (and correct) answer.
KevinDTimm
2010-09-21 13:35:08
+3
A:
Terribly vague question, but it sounds like you are using Visual Studio. Right-click your project, Properties, C/C++, Preprocessor, change "Generate Preprocessed File" to Yes.
After you rebuild, you'll get the .i files with the preprocessor output in your project directory.
Hans Passant
2010-09-21 13:31:11