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 |
How long to learn object oriented programming?
what is pointers
I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
why reinterpret cast is considered dangerous?
What is the renewal class?
1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage
In multilevel inheritance constructors will be executed from the .... class to ... class
what is the difference between a package and a software?
What are the advantanges of modularity
What does I oop mean?
WHEN A COPY CONSTER IS CALL ?