Check out example codes for "c++ while true loop". It will help you in understanding the concepts better.

Code Example 1

while (true) { // you can also put 1 or true: while (1)
	//do stuff
}

Learn ReactJs, React Native from akashmittal.com