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 are pointers really good for, anyway?

1059


What are the 5 types of inheritance in c ++?

1021


How arrays can be passed to a user defined function

1017


How do I get an accurate error status return from system on ms-dos?

1113


differentiate built-in functions and user – defined functions.

1080


What is wrong in this statement?

1140


How to set file pointer to beginning c?

1199


Why is structure important for a child?

1097


What is the benefit of using an enum rather than a #define constant?

1231


Calculate 1*2*3*____*n using recursive function??

2028


code for find determinent of amatrix

1957


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2441


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1961


What is pass by value in c?

1065


How can you avoid including a header more than once?

980