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 will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }
Write a C program in Fibonacci series.
What does. int *x[](); means ?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Can you add pointers together? Why would you?
How does C++ help with the tradeoff of safety vs. usability?
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
Write a program to find minimum between three no.s whithout using comparison operator.
State the difference between x3 and x[3].
plz answer.. a program that takes a string e.g. "345" and returns integer 345
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Can an array be an Ivalue?