Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to make a goto area in c++

	
//based on syntax 1
#include<iostream>
using namespace std;
// function to check greater number
void checkGreater()
{
int i, j;
i=2;j=5;
if(i>j)
goto iGreater;
else
goto jGreater;
iGreater:
cout<<i<<" is greater";
return;
jGreater:
cout<<j<<" is greater";
}
// main method to test above function
int main()
{
checkGreater();
return 0;
}
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #goto #area
ADD COMMENT
Topic
Name
3+5 =