Tag: cpp

Code

Step-By-Step Reading And Writing Files in C Program

Reading And Writing Files in C Program with an example. How to read, write and append using file handling in C programming? Explained in detail.

algorithm

Selection Sort in C with Explanation | Algorithm, Program and Time Complexity

Selection Sort in C with Explanation and program. Stepwise explanation of Algorithm and time Complexity. What are the advantages and disadvantages?

cpp

Write a C Program to Print 1 to 100 without Loop, Recursion or Goto

Write a C program to program to print 1 to 100 without loop and recursion. Two simple methods to print a series of numbers without loop explained with an example.

cpp

[3 Ways] C/C++ Program to Swap Two Numbers Without Using Temporary Variable

How to write a C program to swap two numbers without using temporary variable? Use addition, subtraction, Multiplication, Division and XOR operation instead of extra space.

Code

Write a C Program to Remove White Spaces from String

Write a C program to remove white spaces from string. You have given a string which includes multiple words.

cpp

Storage Classes in C and C++ | Explained with Example

Every datatype has storage classes in C and C++ that defines scope and visibility of variables. Here are different types of storage classes with example.

coding challenge

How to Find Next Greater Number with Same Set of Digits in C?

How to Find Next Greater Number with same Set of Digits of a Given Number in C Program? This is a coding question as well as asked in many interview coding rounds.

array

Write a C Program to Implement Stack using Array

The stack can be implemented using array. Stack using array is the easiest way to understand, how stack actual work and Operations to be performed on Stack using array.

cpp

Write C/C++ Program to Reverse a Linked List without Recursion?

Write a C/C++ Program to Reverse a Linked List. Reverse the singly Linked List elements with or without recursion. Time Complexity explained in detail.