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 |
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,
why division operator not work in case of float constant?
What is pointer to pointer in c?
What are runtime error?
implement NAND gate logic in C code without using any bitwise operatior.
What is function what are the types of function?
What is the purpose of 'register' keyword?
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.
how can write all 1to 100 prime numbers using for loop,if and break ?
Why cann't whole array can be passed to function as value.
Is printf a keyword?