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 |
Which programming language is best for getting job 2020?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
what is the differance between pass by reference and pass by value.
Hi can anyone tell what is a start up code?
What is getch c?
When should you use a type cast?
Explain built-in function?
What is a substring in c?
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.
Hai why 'c' is the middle language
void main() { int a=1; while(a++<=1) while(a++<=2); }