Please see the source code
I am amazed
the scanf function has %[^\n] it should be %s
why this is working fine ??? what does this mean ??? ---> %[^\n] in scanf function ??
Source Code
Output
[SLIDE]http://i2.lulzimg.com/10a5df8703.png[/SLIDE]
I am amazed
the scanf function has %[^\n] it should be %s
why this is working fine ??? what does this mean ??? ---> %[^\n] in scanf function ??
Source Code
PHP:
#include<stdio.h>
#include<conio.h>
main()
{
char str[20];
clrscr();
scanf("%[^\n]",str);
printf("\n\n\n%s",str);
getch();
}
Output
[SLIDE]http://i2.lulzimg.com/10a5df8703.png[/SLIDE]