main()
{
if()
{
if()
{
if()
{
something ()
/* something so that the program executes the last line means last printf without using goto ststement */
}
}
}
printf("hello");
}
shwee
0
Newbie Poster
Recommended Answers
Jump to PostHomework detected, even though you haven't asked a question yet.
If this were real code, I'd say go ahead and use goto. The reasons to avoid doing so don't really apply in this particular situation, and it saves time, space and clutter.
All 2 Replies
Reply to this topic
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.