String Swapping Using String Function In C Tamil


//www.tutorjoes.com
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
  char *a,*b,*c;
  clrscr();
  printf("\nEnter the First string :");
  gets(a);
  printf("\nEnter the second string :");
  gets(b);
  strcpy(c,a);
  strcpy(a,b);
  strcpy(b,c);
  printf("\nFirst string : %s",a);
  printf("\nSecond string : %s",b);
  getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming