Posts

Showing posts with the label first hello world program in c

Do-While Loop in C++ Programming Language

Image
 Do-While Loop In C++ Programming Language The do-while loop is an exit-controlled loop. We have studied about loops before in our previous blog posts let us now look at the do-while loop in C++ programming language. An interesting thing about do-while is that this loop executes at-least once no matter if the given condition is true or false at the very first iteration. It means in both the cases if condition is true or false the do-while will run and execute the piece of code. After that the given condition will decide wether the do-while loop will run or not if the condition is false then the do-while loop will terminate and not run for the second iteration and if the condition is still true then the do-while loop will run. Basic Syntax of Do-while Loop in C++ Programming Language Basic Working of Do-While Loop in C++ Programming Language As we know that these looping statements are used to repeat or iterate some piece of code. In do-while loop first we sho...

How to run c project in visual studio community 2022

Image
  How to Run C project in Visual Studio Community 2022 Many people think we cannot write c code in the visual studio community. but this is completely not true, yes we can create a C file and run C code in Visual Studio 2022 let us see how we can achieve it. 1) Open Visual Studio 2022  First of all, we are going to open Visual Studio 2022. 2) creating a new project  Then we are going to create a new project by clicking create new project button. 3) choosing a project template: Create a new project window that will appear in front of you. From this window select an empty project template with C++ symbol on it. Then push the next button. 4) configure your project  A new window will appear in front of you with the heading Configure your new project. In this window, you can select your project and solution name. And also the location of your project. then click the Create button. 5) New project created: On clicking the create button a C++ project is go...