Contact Learn C
Copy

Program 188:To Copy one string to other String using Pointers

Program 188:

#include<stdio.h>
main()
{
  char s[25],*t;
  printf("Enter a string\n");
  scanf("%s",&s);
  t=s;//copying base address of string
  while(*t!='\0')
  {
   printf("%c",*t);
   t++;
  }
  printf("\n");
}
Explanation:

//Coming Soon...

Output:









 
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide