C Program to Scan and Print String

Write C Program to Scan and Print String

// C  Program to Scan and Print String

#include <stdio.h>

int main()
{
	char S[50];

	printf("Enter the String :--> ");
	scanf("%s",&S);

	printf("You Entered :--> %s", S);

	return 0;
}

Output:

Enter the String :--> CodeCrucks
You Entered :--> CodeCrucks

≪ Previous | Next ≫