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 |
What is late bound function call and early bound function call? Differentiate.
what is the difference between class and object?
c++ program to swap the objects of two different classes
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?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
What is cohesion in oop?
How do you define a class in oop?
Why do we need polymorphism in c#?
What is the diamond problem in inheritance?
WAP to generate 2n+1 lines of the following pattern on the computer screen:
How is class defined?
what is the definition of incapsulation