Sunday, August 14, 2011

Program that uses function with 2 parameters (char,int).Displays char a number of times based on int number?

You're having scope problems. When you scanf in main(), your variables don't exist yet because you create them in the func() function.

No comments:

Post a Comment