How can I read a directory in a C program?
Answer Posted / 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 |
Post New Answer View All Answers
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
Is it possible to pass an entire structure to functions?
What is the use of #define preprocessor in c?
What is a global variable in c?
What is the difference between exit() and _exit() function in c?
What is pragma in c?
Explain what is the stack?
What is atoi and atof in c?
Is swift based on c?
What is the general form of #line preprocessor?
Explain the difference between malloc() and calloc() in c?
What is ambagious result in C? explain with an example.
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Can you please explain the difference between exit() and _exit() function?
What are the 5 data types?