Pages

Thursday

How to swap two numbers using three variables in C

Here's a program to swap two numbers using three variables with explanation using C Programming language.

Sunday

How to swap two numbers using only two variables in C

Here's a program to swap two numbers using only two variables with explanation using C Programming language.

Friday

Program to Perform Various String Operations on a Given String in C

Here is a C program to perform different manipulations on a given string. This program encapsulates different operations provided by C language on a String e.g.
  • finding length of a string
  • converting a string to uppercase or lowercase
  • reversing a string
  • concatenating of two strings
  • copy one string to another string
This program uses C concepts like  Array, Gets Function and String Functions like string length (strlen()), string copy (strcpy()),strcat(), strrev(), strlwr() and strupr().