/*A program to presenting entering array of characters or string from scanf & making diffrence b/w scanf & fgets*/
#include<stdio.h>
int main()
{
int name[20];
printf("enter the name in array");
scanf("%s",name);//it will take name in array by using %s into it...but will not take space ...if u want to have space b/w 1st name & last name ....u may use %[^\n]s instead of %s or fgets....