Explain how do you list files in a directory?
Answer / Neeraj Kashyap
To list files in a directory, you can use functions like opendir(), readdir(), and closedir() in C. You open the directory using opendir(), read each file entry using readdir(), and close the directory using closedir(). The readdir() function returns a struct dirent containing information about the current file entry.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are macros in C?
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
what is d pitfalls of registers variables
write a program for size of a data type without using sizeof() operator?
22 Answers HCL, IBM,
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?
what are enumerations in C
What are the different types of storage classes in C?
What are the 4 types of organizational structures?
Is it possible to run using programming C for Java Application?
How can variables be characterized?
what is answer for perfect number????????????????
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above