Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #107.55K
~13.5K People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for ankit_the_hawk

The easiest way to get rid of [U][I]gets() problem[/I][/U] is to repeat that particular gets(); line [U]The Solution[/U] [CODE] #include<stdio.h> void main() { char name[20],add[20]; int age; printf("\nEnter name : "); gets(name); printf("\nEnter age: "); scanf("%d",&age); printf("\nEnter address : "); gets(add); gets(add); //repeat gets(); printf("\n\n\nName is %s",name); printf("\n\nAddress is %s",add); …

Member Avatar for thisun
0
13K

The End.