char* duplicated strdup("Hello World");
duplicated will now contain the address to dynamically allocated memory of a C-style string that contains "Hello World" and a null at the end. Be sure to free duplicated when you're done with it or you'll have a memory leak.
To specify the return-type of the function.
You can use the pow() function in math.h.
With function strdup (here is an implementation, if you don't have one already)char *strdup (const char *f){size_t len;char *to;len= strlen (f);to = malloc (len+1);if (to) memcpy (to, f, len+1);return to;}
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).
C language doesn't say anything about graphics, it is platform-dependent.
Include the header file math.h and use the function acos(d)
Use function open or creat or fopen.
In UNIX: use function chmod