Answer Posted / 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 |
Post New Answer View All Answers
What is the translation phases used in c language?
Why we use conio h in c?
What are called c variables?
What is c standard library?
How do you convert strings to numbers in C?
What is console in c language?
Explain what is wrong with this program statement? Void = 10;
What is table lookup in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is sizeof int in c?
Can you write the algorithm for Queue?
Explain what are run-time errors?
What is the difference between ++a and a++?
What are the types of macro formats?
What does the && operator do in a program code?