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...

How can I read a directory in a c program?

Answer Posted / banavathvishnu

int main(int argc,char *argv[])
{

printf("%s \n",argv[0]);
return 1;
}
will give you the path where the executable is stored.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the translation phases used in c language?

1172


Why we use conio h in c?

1302


What are called c variables?

1127


What is c standard library?

1271


How do you convert strings to numbers in C?

1297


What is console in c language?

1142


Explain what is wrong with this program statement? Void = 10;

1313


What is table lookup in c?

1148


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2013


What is sizeof int in c?

1114


Can you write the algorithm for Queue?

2175


Explain what are run-time errors?

1145


What is the difference between ++a and a++?

1274


What are the types of macro formats?

1163


What does the && operator do in a program code?

1282