Write a program to swap the two given strings without using string function

Source Code

int main (int argc, char *argv[])
  char str1[100];
  char str2[100];
  char t;
  int l1=0,l2=0,l=0,i;
  printf("\nEnter first string:");
  printf("\nEnter second string:");
  while(str1[l]!='\0' || str2[l]!='\0')
  printf("\nThe first string is:");
  printf("\nThe second string is:");

Find More from our code collection
Armstrong number, binary number to a decimal number, bubble sort, decimal number to binary number, factorial of the given number factors, fibonacci numbers, HCF and LCM, matrix, mergesort, salary of the employee. palindrome, quadratic equation, star patterns, series etc. and much more...
#Return to Example Source Code