Implement itoa() function in C
Write an efficient function to implement the itoa() function in C. The standard itoa() function converts input number to its corresponding C-string using the specified base.
Ace your Coding Interview
Get hired by top tech companies with our comprehensive interview preparation.
Get StartedWrite an efficient function to implement the itoa() function in C. The standard itoa() function converts input number to its corresponding C-string using the specified base.
Write an efficient function to implement the strcpy function in C. The standard strcpy() function copies a given C-string to another string.
Write an efficient function to implement the strncpy function in C. The standard strncpy() function copy the given n characters from source C-string to another string.
Write an efficient function to implement the strcat function in C. The standard strcat() function appends the copy of a given C-string to another string.
Write an efficient function to implement the strncat function in C.
Write an efficient function to implement the strcmp function in C. The standard strcmp() function compares the two strings and returns an integer indicating the relationship between them.
Write an efficient program to implement strstr function in C. The strstr() function returns a pointer to the first occurrence of a string in another string.
This post will discuss various methods to dynamically allocate memory for 2D array in C using Single Pointer, Array of Pointers and Double Pointer.
This post will discuss various methods to dynamically allocate memory for 3D array in C.
Print binary representation of a given number in C, C++, Java, and Python using built-in methods and custom routines.
This post will discuss the XOR linked list, which is used to reduce memory requirements of doubly-linked lists using a bitwise XOR operator.
The KMP Algorithm (or Knuth, Morris, and Pratt string searching algorithm) cleverly uses the previous comparison data. It can search for a pattern in linear time as it never re-compares a text symbol that has matched a pattern symbol.