How can I read a directory in a C program?
Answers were Sorted based on User's Feedback
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 |
Answer / hussain reddy
#include<stdio.h>
void main()
{
printf("%s",_agrv[0]);
}
| Is This Answer Correct ? | 2 Yes | 9 No |
why do we use pointer instead directly acessing the data?
what is const volatile?
what r callback function?
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
What does c in a circle mean?
What is the meaning of ?
how to swap four numbers without using fifth variable?
What is the auto keyword good for?
Explain bitwise shift operators?
What is function what are the types of function?
for(;;) printf("C language") What is out put of above??
2 Answers Practical Viva Questions,
how many error occurs in C language ?