Showing posts with label c programming examples. Show all posts
Showing posts with label c programming examples. Show all posts

Thursday, 17 October 2013

Break And Continue Statements

Break And Continue Statements: In this C tutorial for beginners, we are going to discuss a very useful facility of C++ which are break and continue statements. Break statement in C: Previously, we have seen that break statement was used in a switch structure. Similarly, you can use break statement in while, for and do…while loops. When a break statement executes in a repetition structure, it immediately exits from the repetition structure. There are times when our requirement is met but the loop still doesn’t finish so, we use this break...

Sunday, 6 October 2013

Creating A C++ Program

How to Create a C++ program?? In this C tutorial for beginners, we are going to learn how to create C++ programs with output. After studying previous tutorials, we now have the basic and required concepts needed to create a C++ program. A C++ program is a collection of function, one of which is the function main. A function is a set of instructions designed to accomplish specific task. We’ll deal with functions in further tutorials in detail. The syntax of the function main is: int main(){    Statement 1   ...