string top question Assignment in c

20 Sep 2022 Balmiki Mandal 0 C Programming

Top String Assignment Questions in C Programming

  • String Length (strlen) Implementation:

    • Write a C program to calculate the length of a string without using the standard strlen function.
  • String Reversal:

    • Create a program to reverse a given string in C.
  • String Concatenation:

    • Write a C program to concatenate two strings without using the standard strcat function.
  • String Palindrome:

    • Develop a program to check if a given string is a palindrome (reads the same forwards and backwards).
  • String Anagrams:

    • Create a program that checks if two strings are anagrams of each other (contain the same characters in different orders).
  • String Tokenization:

    • Write a program to tokenize a sentence into words in C.
  • String Comparison:

    • Implement a function that compares two strings without using the standard strcmp function.
  • String Replacing:

    • Develop a program that replaces all occurrences of a specified word in a given sentence.
  • String Compression:

    • Create a program that compresses a string by replacing repeated characters with a single character followed by the count.
  • String Encryption/Decryption:

    • Implement a basic encryption and decryption algorithm for strings.
  • String Sorting:

    • Write a program that sorts an array of strings in lexicographical order.
  • String Searching:

    • Develop a program to search for a substring within a given string and return its index.
  • Remember to handle edge cases and input validation in your programs. These assignments will help students practice and master various string manipulation techniques in C programming.

BY: Balmiki Mandal

Related Blogs

Post Comments.

Login to Post a Comment

No comments yet, Be the first to comment.