how many arguments pass in fopen() c language
tell me answer fast..
Answers
There are two arguments passed in fopen() c language.
1. const char* filename
2. const char* mode
Explanation:
fopen() function in C:
The fopen() function is used in C language to open a stream that links to a file.
Declaration:
FILE *fopen (const char *file_name, const char *mode)
file_name: It is the given file name that you want to open.
mode: The operation mode can be like read, write etc.
Example: fopen("F:\\cprogramming\\newproject.txt","w");
The c language fopen() takes two arguments.
Explanation:
The C library function "FILE * fopen(const char * filename, const char * mode)" opens the filename indicated by the filename using the specified mode.
The following is the declaration for fopen() function.
- "FILE *fopen(const char *filename, const char *mode)"
- This has 2 parameters filename, mode as its arguments.
- filename - This is the C string holding the filename to be opened.
- mode - This is the C string holding a file access mode.
- This function returns a FILE pointer. Otherwise, 'NULL is returned' and the 'global variable' errno is set to indicate the error.
To know more
Do you stop your arguments after sometime or continue it for a long time?
https://brainly.in/question/4816970
Arguments that take input by user before running a program are called
https://brainly.in/question/3649642