Posts

Showing posts with the label first hello world program in c

Switch statement in C++ programming language

Image
 Switch statement in C++ programming language In programming languages we have studied about conditional statements in which accross given set of conditions we chose any specific condition and run the block of code as per that condition. There are other techniques that we call control statement or decision making statements . The Switch statement is one of the very important example of such control statement  or deciison making statements . The switch is used to to select and execute one block of code from several possible options. The Switch statement is alternatively used in place of a long if-else-if ladder statement which is an example of conditional statement . It is more cleaner as compared to if-else-if ladder and also it is more efficient for the compiler to process it. Basic Syntax of Switch Statement in C++ programming language Basic Working of Switch Statement in C++ Programming Language In Switch statement we usually take an input from user th...

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...