It is very difficult, because it has as many as oneparameter, so it is very easy to get confused...
try this:
const char *s= "example";
printf ("length of '%s' is %d\n", s, (int)strlen (s));
strlen just tells you how many charters there are before the the first zero value. If you are going to create a buffer based on strlen then you must add 1 to the value that strlen returnes. The needs to be a place to store the terminating zero.
char *s= "example";
char *buffer;
buffer = (char*)malloc(strlen(s)+1);
function
There is no length function in C. You may have thought of sizeof or strlen. Perhaps.
Nothing, it is a security hole. Use 'fgets' instead.
The c language does not have template functions. That is a c++ thing.
C language doesn't say anything about graphics, it is platform-dependent.
Include the header file math.h and use the function acos(d)
There is no length function in C. You may have thought of sizeof or strlen. Perhaps.
printf, fgets, strlen, malloc etc
To specify the return-type of the function.
You can use the pow() function in math.h.
You cannot have a function named else, because it is a reserved word.
Use the atoi() or atol() function.
Nothing, it is a security hole. Use 'fgets' instead.
The c language does not have template functions. That is a c++ thing.
Function 'clrscr' is not part of the C language. Or the standard libraries. It is MS-DOS specific function, use the help for details (clrscr means clear the screen).
Include the header file math.h and use the function acos(d)
C language doesn't say anything about graphics, it is platform-dependent.
Use function open or creat or fopen.