You can take a string as input in C using scanf(“%s”, s). But, it accepts string only until it finds the first space. In order to take a line as input, you can ...
//char *ptr=str; // Here we can only use *ptr="Anmol Diwedi" too!!!//-2 char str[]="ANMOL Diwedi"; // we can use this also and 1 or 2 too...!!!