C Programming :: Library Functions
-
Will the program outputs "IndiaBIX.com"?
#include
int main() { char str1[] = "fresherGATE.com"; char str2[20]; strncpy(str2, str1, 8); printf("%s", str2); return 0; } -
The itoa function can convert an integer in decimal, octal or hexadecimal form to a string.
-
The prototypes of all standard library string functions are declared in the file string.h.