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
Explain what is #line used for?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Can we change the value of static variable in c?
What is pass by value in c?
Explain what is a 'locale'?
How can I prevent another program from modifying part of a file that I am modifying?
Why doesnt the call scanf work?
Give me the code of in-order recursive and non-recursive.
How can I automatically locate a programs configuration files in the same directory as the executable?
Why & is used in scanf in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I find out the size of a file, prior to reading it in?
How many types of operators are there in c?
What is c preprocessor mean?
What is pointer and structure in c?