Results 1 to 10 of 15
Threaded View
-
12th Feb 2012, 08:45 AM #1OPBannedWebsite's:
cityvillehelp.comTurbo C | scanf() | strange
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
PHP Code:#include<stdio.h>
#include<conio.h>
main()
{
char str[20];
clrscr();
scanf("%[^\n]",str);
printf("\n\n\n%s",str);
getch();
}
Output
prateek Reviewed by prateek on . Turbo C | scanf() | strange Please see the source code I am amazed the scanf function has % it should be %s why this is working fine ??? what does this mean ??? ---> % in scanf function ?? Source Code #include<stdio.h> #include<conio.h> main() { Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Md5 generation on Turbo C
By prateek in forum Web Development AreaReplies: 5Last Post: 14th Feb 2012, 08:42 PM -
Turbo C | Weird and amazing
By prateek in forum Web Development AreaReplies: 13Last Post: 11th Feb 2012, 04:57 PM -
Turbo C | Help Needed
By prateek in forum Web Application/Script SupportReplies: 17Last Post: 12th Jan 2012, 12:26 PM -
Turbo Leech - FREE Rapidleech Server With 8 Premium Account
By Faizann20 in forum Useful SitesReplies: 9Last Post: 2nd Dec 2010, 05:00 AM -
Looking to buy sites, in a strange way :P
By JmZ in forum Completed TransactionsReplies: 4Last Post: 15th May 2008, 02:21 AM
themaPoster - post to forums and...
Version 5.40 released. Open older version (or...