How can I read a directory in a c program?
Answer / banavathvishnu
int main(int argc,char *argv[])
{
printf("%s \n",argv[0]);
return 1;
}
will give you the path where the executable is stored.
| Is This Answer Correct ? | 8 Yes | 1 No |
Explain what is the general form of a c program?
what is available in C language but not in C++?
10 Answers CTS, TCS,
can you change name of main()?how?
main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }
how i m write c program 1.check prime number 2.prime number series
Tell me is null always defined as 0(zero)?
What is c programming structure?
what is difference between procedural language and functional language ?
what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
Can you please explain the difference between malloc() and calloc() function?
How would you obtain the current time and difference between two times?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?