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 can static variables be declared in a header file?
What is a static function in c?
What is merge sort in c?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
print the table 5 in loops
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What are the phases in s/w developed life cycle? wat is the diff b/w stack & queue...where do we use stack
Which is best linux os?
What does a run-time "null pointer assignment" error mean?
Can static variables be declared in a header file?