From mboxrd@z Thu Jan 1 00:00:00 1970 From: vipul kumar samar Subject: Re: c++ code - not getting compiled !!!!!!!!! Date: Fri, 29 Jul 2011 12:21:54 +0530 Message-ID: <4E32588A.5060406@st.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: ratheesh kannoth Cc: "linux-c-programming@vger.kernel.org" On 07/29/2011 11:31 AM, ratheesh kannoth wrote: > #include > > using namespace std; > > int main() > { > int i; > > cout<< "Enter value of i "<< endl; > cin>> i; > > if (i< 5) > goto Sri; > > int j = 6; replace int j = 6; with int j; j = 6; C++ standard: not able to bypasses declaration with initialization. Regards Vipul Samar > cout<< "j = "<< j<< endl; > > cout<< "Outside Sri"<< endl; > return 0; > > Sri: > cout<< "Inside Sri"<< endl; > return 0; > } > -- > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- I want another RE-WRITE on my CEASAR SALAD!!