How to Print a String in C?
How to Print a String in C?

How to Print a String in C?

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

C Program to Print a String Entered by the User #include <stdio.h> int main() { char name[20]; // Character array printf("\n\tC Program to Print a string"); printf("\n\tEnter a string to…

Continue Reading How to Print a String in C?

Escape sequences in C

What are escape sequence characters in C? Escape sequences are used to format the data. It is the sequence of characters. It starts with symbol '\'(backslash). Ex: '\n' means newline.…

Continue Reading Escape sequences in C

strrchr in c

strrchr function in c strrchr is a built-in function used to search for a last occurrence of the given character in a string. This function is defined in string.h header…

Continue Reading strrchr in c

strstr in c

strstr function in c strstr function searches for a given string in the main string. It returns a pointer to the first occurrence of a given string. It is defined…

Continue Reading strstr in c

strchr in c

What is strchr in c programming? strchr in c is a built-in function used to search for a first occurrence of the given character in a string. This function is…

Continue Reading strchr in c

strncpy in c

What is strncpy in c programming? strncpy function copies n characters from source to destination. This function is defined in string.h header file. This function returns a copied string. Prototype…

Continue Reading strncpy in c

strcpy in c

What is strcpy in c programming? strcpy function is used to copy the string from source to destination. Whenever strcpy encounters null character it stops copying. strcpy function is defined…

Continue Reading strcpy in c

Palindrome in c | c++ and java

  • Post author:
  • Reading time:5 mins read
  • Post category:C Programs

If you are searching for a program for Palindrome in c , c++ and java you are at the right place. Read the complete article. What is a palindrome? Palindrome…

Continue Reading Palindrome in c | c++ and java