Dynamic Memory Management - C# Programming Exercises

Learn Dynamic Memory Management in C#! These exercises guide you through concepts like pointers and memory allocation, crucial for building efficient applications. Develop a deeper understanding of how C# manages memory under the hood.

  •  Implementing a queue using array

    In this exercise, you need to implement a queue in C#. A queue is a data structure that follows the FIFO (First In, First Out) principle, meaning the first ele...

  •  Implementing a stack using array

    In this exercise, you need to implement a stack in C#. A stack is a data structure that follows the LIFO (Last In, First Out) principle, meaning the last eleme...

  •  Queue Collections

    In this exercise, you need to create a string queue using the Queue class that already exists in the DotNet platform. The Queue class is an implementation of t...

  •  Queue Stack Reverse Polish Notation

    In this exercise, you need to create a program that reads a Reverse Polish Notation (RPN) expression from a text file, such as: 3 4 6 5 - + * 6 + (Result 21). In...

  •  ArrayList

    In this exercise, you need to create a string list using the ArrayList class that already exists in the .NET platform. The ArrayList class allows storing items...

  •  ArrayList duplicate a text file

    In this exercise, you need to create a program that reads from a text file and stores it to another text file by reversing the order of the lines. This exercise will ...

  •  Unlimited sum

    In this exercise, you need to create a program that allows the user to enter an unlimited amount of numbers. Besides entering numbers, the program should allow the user to e...

  •  ArrayList - Text file reader

    In this exercise, you need to create a basic text file reader that displays 21 lines of text and allows the user to navigate using the up and down arrow keys, and exit using...

  •  Hast Table - Dictionary

    In this exercise, you need to create a dictionary using a hash table. The purpose of this exercise is to practice the implementation of an efficient data struc...

  •  Parenthesis

    In this exercise, you need to implement a function to check if a sequence of open and closed parentheses is balanced. In other words, the function should check if every open...

  •  Mix and sort files

    In this exercise, you need to create a program that reads the contents of two different files, merges them, and sorts them alphabetically. The program should be able to take...

  •  ArrayList of Points

    In this exercise, you need to create a structure named "Point3D" to represent a point in 3D space with X, Y, and Z coordinates. The structure should allow storing and manipu...

  •  Search in file

    In this exercise, you need to create a program that reads the contents of a text file, saves the content into an ArrayList, and prompts the user to enter sentences to...

 More C# Programming Exercises Grouped

  •  First contact with C# Sharp

    Explore our set of C# programming exercises! Specifically designed for beginners, these exercises will help you develop a solid understanding of the basics of C#. From variables and data types to control structures and s...

  •  Flow Control

    Explore our curated collection of Flow Control C# Programming Exercises! Designed to strengthen your understanding and mastery of flow control structures in C#, these exercises offer a hands-on approach to learning. From...

  •  Basic Data Types

    Explore our comprehensive collection of Basic Data Types C# Programming Exercises! Designed to provide hands-on practice with fundamental data types in C#, these exercises are perfect for beginners looking to solidify th...

  •  Arrays, Structures and Strings

    Explore our curated selection of Arrays, Structures, and Strings C# Programming Exercises! Tailored to provide practical experience with essential data structures and string manipulation in C#, these exercises offer a dy...

  •  Functions

    Embark on a journey of learning with our Functions C# Programming Exercises! Tailored for beginners, these exercises offer a hands-on approach to mastering the art of functions in C#. From understanding the basics of fun...

  •  OOP Object Oriented Programming

    Unlock the power of Object-Oriented Programming (OOP) with our C# exercises! These lessons cover classes, objects, and core principles like inheritance and polymorphism. Perfect for beginners, each exercise offers a hand...

  •  OOP More On Classes

    Dive deeper into Object-Oriented Programming with our advanced C# exercises! This section explores advanced class features, interfaces, and more. Whether you're reinforcing your OOP skills or preparing for complex projec...

  •  File Management

    Explore File Management in C# with our hands-on exercises! Learn to create, read, write, and manage files in your applications. These lessons are perfect for gaining practical experience with file handling in C#. Enhance...

  •  Object Persistence

    Master the art of Object Persistence in C#! These exercises focus on saving and retrieving objects, helping you build applications that store data effectively. Perfect for learners ready to explore advanced storage techn...

  •  Access To Relational Databases

    Delve into Access to Relational Databases in C#! These exercises provide practical experience connecting to and working with databases like SQL Server. Learn to execute queries, manage data, and integrate database functi...

  •  Additional Libraries

    Discover Additional Libraries in C#! These exercises introduce libraries that expand the capabilities of your C# applications. From working with collections to threading and beyond, these lessons will elevate your progra...

 Maybe you will be interested in these C# Programming Exercises

  •  Date and time

    In this exercise, you need to create a program that displays the current date and time in the following format:"Today is 6 of February of 2015. It´s 03:23:12".

  •  Display directory

    In this exercise, you need to create a program that shows all the files in the current folder. The program should list the files available in the directory where the program...

  •  Display executable files in directory

    In this exercise, you need to create a program that shows the names of all executable files (.com, .exe, .bat, .cmd) in the current folder, excluding the full path. The prog...

  •  Date and time continuous

    In this exercise, you need to create a program that displays the current time in the top-right corner of the screen with the format "HH:mm:ss". The program should pause for ...

  •  Sitemap creator

    In this exercise, you need to create a program that displays the contents of a preliminary "sitemap" on the screen. The sitemap should be generated from the list of "...

  •  List of images as HTML

    In this exercise, you need to create a program that generates an HTML file listing all the images (PNG and JPG files) in the current folder. The program...