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 |
Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.
what is the difference between #include<stdio.h> and #include"stdio.h" ?
What is c variable?
1 What is a Data Structure?
How do we print only part of a string in c?
a program that can input number of records and can view it again the record
Total of how many functions are available in c?
difference between function & structure
How can I get back to the interactive keyboard if stdin is redirected?
what is an array
What is your stream meaning?
What do you mean by keywords in c?