Category: C

Implement substr function in C

Write an efficient function to implement substr function in C. substr() function returns the substring of given string between two given indexes.

Implement strcmp() function in C

Write an efficient function to implement strcmp function in C. Standard strcmp() function compares the two strings and returns an integer indicating the relationship between the two strings.

Implement strncat() function in C

Write an efficient function to implement strncat function in C. Standard strncat() function appends appends first num characters of given C-string to the another string.

Implement strcat() function in C

Write an efficient function to implement strcat function in C. Standard strcat() function appends a copy of the given C-string to the another string.

Implement substring function in C

Write an efficient function to implement substring function in C. substring() function returns the substring of given string containing n characters starting from given index.

Implement strncpy() function in C

Write an efficient function to implement strncpy function in C. Standard strncpy() function copy given n characters from source C-string to another string.

Implement strcpy() function in C

Write an efficient function to implement strcpy function in C. Standard strcpy() function copy given C-string to another string.

Static Linked List in C

We have discussed about the linked list data structure which is dynamic in nature (the memory is allocated during the run time). Now the question that might be on a few peoples minds is – can a linked link be implemented statically as well? This post tries to answer this question.

Linked List Implementation in C

In previous post, we have introduced linked list data structure and discussed about various types of linked lists. We have also covered the applications of linked list data structure and its pros and cons with respect to arrays. In this post, we will discuss various Linked List implementation techniques in detail and construct a singly …