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 |
#define f(x) main() { printf("\n%d",f(2+2)); }
Do pointers take up memory?
What are derived data types in c?
Is there any demerits of using pointer?
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
What is string function c?
What is the difference between procedural and declarative language?
Differentiate between a structure and a union.
What is #include conio h?
what is linkage error when it occurs in c program
WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N TIMES C COMES N TIMES D COMES N TIMES AND SO ON......... AT LAST UNTIL Z COMES N TIMES...............
Can the “if” function be used in comparing strings?