Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

Sunday, 14 July 2024

Menu Driven Programming in C++ using Class with Example

                      In this post, we will see Menu Driven Programming in C++ using Class with Example.

Saturday, 1 October 2022

How to install Visual Studio Code for C++ in Windows | Run C++ Program in Visual Studio Code vscode

                    In this post, we will see How to install Visual Studio Code for C++ in Windows | Run C++ Program in Visual Studio Code vscode 

Wednesday, 21 September 2022

Static Data Member and Static Member Functions in C++ | Static Variables & Methods in C++ OOPS

                In this post, we will see Static Data Member and Static Member Functions in C++ | Static Variables & Methods in C++ OOPS  


Monday, 23 May 2022

How To Add Dependencies in Maven Project in Eclipse | Add Selenium Dependency in pom.xml Eclipse

                  In this post, we will see How To Add Dependencies in Maven Project in Eclipse | Add Selenium Dependency in pom.xml Eclipse  


Watch following video: 


Watch on YouTube: https://www.youtube.com/watch?v=vjYRLa3JV8E&list=PLhbrpS8rYbc0vBS6Z8SC7OR-zknTBiBHW&index=3

How To Add Maven Plugin in Eclipse | How To Add m2eclipse Plugin in Eclipse

                  In this post, we will see How To Add Maven Plugin in Eclipse | How To Add m2eclipse Plugin in Eclipse  


    Watch following video:


   Watch on YouTube: https://www.youtube.com/watch?v=5JlCMi9gUGc&list=PLhbrpS8rYbc0vBS6Z8SC7OR-zknTBiBHW&index=2 

How To Hide Projects in Eclipse Package Explorer

                     In this post, we will see How To Hide Projects in Eclipse Package Explorer. 


Watch following video:


Watch on YouTube: https://www.youtube.com/watch?v=LWol2BxuFOg&list=PLhbrpS8rYbc0vBS6Z8SC7OR-zknTBiBHW&index=1

Sunday, 5 September 2021

How to Compile and Run a C / C++ Program from Command Prompt in Windows 10 | Run C/ C++ code in CMD

                  In this post, we will see How to Compile and Run a C / C++ Program from Command Prompt in Windows 10 | Run C/ C++ code in CMD 


Watch following video:

Watch on YouTube: https://www.youtube.com/watch?v=7-1J1rInzu0

Monday, 23 August 2021

How to install eclipse c/c++ on windows

                    In this post, we will see how to install eclipse c/c++ on windows. 

Thursday, 18 February 2021

Separate and Independent Compilation with Example | Independent Compilation in C and Java language

                     In this post, we will see Separate and Independent Compilation with Example | Independent Compilation in C and Java language, ppl, principles of programming languages 


Watch following video:

Watch on YouTube: https://www.youtube.com/watch?v=zC800XEJzA8

Monday, 15 February 2021

How To Create Header File in C or C++ Language With Example | How To Create Header File in CPP

                      In this post, we will see How To Create Header File in C or C++ Language With Example | How To Create Header File in CPP | how to create header file in c,how to create header file in c++ with example,how to create header file in c++ in code blocks,how to create header file in cpp 


Watch following Video:

Watch on YouTube: https://www.youtube.com/watch?v=Wou821q0NqY


Monday, 17 February 2020

How to Create Header File in C / CPP or Independent compilation in C language

                    In this post, we will see How to Create Header File in C / CPP | Independent compilation in C language

Thursday, 10 March 2016

How to find the execution time of a C program

                         In this post, we will see how to find the required execution time of a program written in C language.
                         Here we have to include header file time.h. clock_t is a data type which represents the number of clock ticks. Function clock() returns the CPU time in terms of clock ticks. CLOCKS_PER_SEC is a macro which has the value of number of clock ticks per second.
                         To get the execution time, we have to find difference between beginning time and end time.
                          Go through the following program to understand thoroughly. 

Saturday, 5 March 2016

Finding Prime Numbers Between 1 to n in Optimized Way with Implementation in C language

                 In this post, we will see an optimized way to find prime numbers between 1 to n. We will also see its implementation in C Language.           

Explanation:
                 In a conventional way of finding prime numbers from 1 to n, we check whether each number is prime or not by dividing it by numbers less than it. It's complexity becomes O(n2). In this post, I have used optimized way to find the prime numbers between 1 to n whose time complexity is O(n). I have also given C language implementation for this. For execution, I have used gcc compiler on operating system Linux. 

Saturday, 10 October 2015

Finding Preorder, Inorder and Postorder of binary tree in C Language

                  In this post, we will see sample program in C language to find preorder, inorder and postorder traversal of binary tree.
                  Preorder, inorder, postorder traversal follows the following traversal.
Preorder Traversal: Root-Left-Right
Inorder Traversal: Left-Root-Right
Postorder Traversal: Left-Right-Root 

                  Go through the following program:

Friday, 25 September 2015

How to reverse a Linked List in C Language

                In most of the technical interviews, it is common question. Here we will see iterative way to reverse a singly linked list in C language. I have given complete C program which consists of  functions to insert elements into linked list, to reverse the linked list and to print list's elements on screen.
                 Go through the following code. I have given output at the end of this post.


Tuesday, 11 August 2015

Concurrent Quicksort Program in C using OPENMP

              In this post, we will see how to implement Quick sort algorithm concurrently(parallelly) in C language. (For implementation in C++, check http://www.comrevo.com/2016/01/concurrent-quicksort-program-in-cpp-using-openmp.html). To make it concurrent/parallel, we will use OPENMP API. OPENMP is available alongwith gcc compiler.