Joined
Last Seen
-4 Reputation Points
- 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
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: 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); … |
The End.