Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Program to open a file with First argument

Answer Posted / kishore kumar naik p

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object in oop?

1120


What is abstraction in oops?

1048


What is for loop and its syntax?

1086


What are constructors in oop?

1183


What is the benefit of oop?

1058


What is the difference between a constructor and a destructor?

1262


What is the main feature of oop?

1151


What is inheritance and how many types of inheritance?

1105


What is the difference between a mixin and inheritance?

992


How does polymorphism work?

1144


What is cohesion in oop?

1062


What is polymorphism and types?

1107


What is abstraction example?

1112


Why is there no multiple inheritance?

1003


What language is oop?

1011