#include<stdio.h> #include<conio.h> void main(){ char s[5]; printf("Enter String "); scanf("%s",s); // suppose you entered "acmeetgroup.com" . // "acmeetgroup.com" store in String s printf("%s",s) ; // print acmeetgroup.com getch(); }