[ create a new paste ] login | about

Link: http://codepad.org/m0xfaQoi    [ raw code | output | fork ]

C, pasted on Jul 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<stdio.h> 
	void func()
	{	
		start:
			printf("In func() \n");
	
	};
	int main()
	{
		int iCtr=1;
		while( iCtr< 5)
		{
			printf("Hello World\n");
			goto start;
		}
		
	return 0;
	}


Output:
1
2
In function 'main':
Line 14: error: label 'start' used but not defined


Create a new paste based on this one


Comments: