how do i return to another part of the program like the begining

if ( letter=='y')
                        {
                          return letter;
                        }

i want it to return back to a prototype

int roll_hold( char answer1, char answer2)

What you're dealing with here is a scope issue. An if block won't return anything in the sense that that a function would. If you want to retain a value determined within the block, you need to declare the variable which stores that value outside of it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.