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 |
Why is C called a middle-level language?
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
Explain how can I right-justify a string?
Explain the difference between null pointer and void pointer.
Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }
in linking some of os executables are linking name some of them
Describe the difference between = and == symbols in c programming?
how we can make 3d venturing graphics on outer interface
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
how to connect oracle in C/C++.