Search This Blog

Read Your Language

Sample program of the string in C

                   Sample program  of the string in C 



The basic program is the string of show in the below of the following . Meanwhile , we knows that string is the indentifier then defind the character .string show on the  format specifier is the %s.Further , String the most important of the chapter in  C language .

#include<stdio.h>
#include<string.h>
main()
{
char string[45];
printf("Enter the string of character:\n ");
scanf("%s",string);
printf("Enter your string is the : %s",string);
return 0;
}


OUTPUT:
Enter the string of character: 
Hi
Enter your string is the : Hi

No comments:

Contact Form

Name

Email *

Message *

Followers