Accepting Words
      To accept more than one word in a character array use gets function. Scanf fucntion treats space as delimiter too whereas gets functions treats only newline as delimiter.
/*
	http://www.ProbCOMP.com
	
	To accept more than one word in a character array use gets function. Scanf fucntion treats space as delimiter too
	whereas gets functions treats only newline as delimiter.
*/


#include<stdio.h>

void main()
{
	char name[30];
	printf("enter your name: ");
	gets(name);
	printf("%s",name);
}
										

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More