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 |
Explain union. What are its advantages?
What is meant by type specifiers?
What is signed and unsigned?
What is typeof in c?
#include<stdio.h> void main() { int a,b,c; a=b=c=1; c=++a || ++b && ++c; printf("%d\t%d\t%d",a,b,c); }
What is the use of extern in c?
Can we increase size of array in c?
What is %d called in c?
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
Program to find the absolute value of given integer using Conditional Operators
Which of these functions is safer to use : fgets(), gets()? Why?
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