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 is the difference between array and pointer in c?
what is difference between C and C++
How are portions of a program disabled in demo versions?
Who is the founder of c language?
Is linux written in c?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
do you think its fraud or original company?
how to construct a simulator keeping the logical boolean gates in c
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?
Is that possible to store 32768 in an int data type variable?
Differentiate between the expression “++a” and “a++”?
we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?