G
gullu
Hi,
I know that it is a very wierd question but anyways, I will ask it and
will really appreciate of someone could help me out.
Is there any way to use global labels in C/C++.
I want to implement a piece of code that has a functionality similar
to the code shown below.
int main()
{
LabelTest();
printf("This MUST NOT be printed.\n");
label1:
print("This MUST be printed.\n");
return 0;
}
void LabelTest()
{
goto label1;
}
Is there anyway to achieve some functionality like this.
Thanks,
Atif
I know that it is a very wierd question but anyways, I will ask it and
will really appreciate of someone could help me out.
Is there any way to use global labels in C/C++.
I want to implement a piece of code that has a functionality similar
to the code shown below.
int main()
{
LabelTest();
printf("This MUST NOT be printed.\n");
label1:
print("This MUST be printed.\n");
return 0;
}
void LabelTest()
{
goto label1;
}
Is there anyway to achieve some functionality like this.
Thanks,
Atif