(a) Discuss the syntactic rules to be followed while using goto state…

Previous year question for Computer Programming.

Question

(a) Discuss the syntactic rules to be followed while using goto statement ? Are there any restrictions that apply where control can be transferred in a C program? Why the use of goto statement is discouraged? Explain with example. (10)

(b) Write a program in C to print all prime numbers between 50 to 500. (10)

Related pages

More PYQs on Looping

Open on CachedInfo