Program to open a file with First argument
void main(int nArgCount, char *szArgVector[])
{
if(nArgCount != 2)
{
printf("\nWorng number of argument\nSynatx: %s
<filename>",szArgVector[0]);
return;
}
FILE *fp = foepn(szArgVector[1],"r+");
//Process the file here
fclose(fp);
}
Is This Answer Correct ? | 0 Yes | 0 No |
A file pointer always contains the __________ of the file
What is polymorphism in oops?
What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
What is methods in oop?
what is ltti
can we create and enter the data & hide files using programmes ?
What is encapsulation process?
what is costructor?
Difference between realloc() and free?
What is a scope resolution operator?
In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that
How can you overcome the diamond problem in inheritance?