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?

Answers were Sorted based on User's Feedback



How can I read a directory in a C program?..

Answer / sathish

In Linux/Unix , we have the header file dirent.h.This .h
file contains the direcory manipulation functions Some of
the functions are opendir,closedir,readdir.

Is This Answer Correct ?    7 Yes 1 No

How can I read a directory in a C program?..

Answer / hussain reddy

#include<stdio.h>
void main()
{
printf("%s",_agrv[0]);
}

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More C Interview Questions

Why is C called a middle-level language?

1 Answers  


for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT

1 Answers   IBM,


Explain how can I right-justify a string?

0 Answers  


Explain the difference between null pointer and void pointer.

0 Answers   TCS,


Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

3 Answers   NDS,


in linking some of os executables are linking name some of them

0 Answers   IBM,


Describe the difference between = and == symbols in c programming?

0 Answers  


how we can make 3d venturing graphics on outer interface

1 Answers   Microsoft,


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Lucent,


how the size of an integer is decided? - is it based on processor or compiler or OS?

19 Answers   HCL, JPR, Microsoft, nvidia,


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


Categories