Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Random access in files allows direct movement of the file pointer to any position, enabling reading or writing at specific locations without sequential processing. Functions like fseek(), ftell(), and rewind() in C help manipulate file data efficiently, making file handling more flexible and dynamic.
In C programming, file handling allows reading from and writing to files using functions like fopen(), fclose(), putc(), getc(), fwrite(), and fread(). Files are opened in various modes such as read, write, or append, with support for unformatted and formatted input/output operations.
TCP/IP sockets are the most reliable, bi-directional, stream protocols. It is possible to send arbitrary amounts of data using TCP/IP. Sockets are used for data communication using this protocol.
Explore the concept of arrays of structures and structures within structures in data modeling. Understand how to manage complex data by nesting structures, utilizing multidimensional arrays, and creating hierarchical data models.
Multidimensional arrays store data in multiple levels, enabling complex data structures like arrays of strings. This guide explores how to create, access, and manipulate string arrays within multidimensional arrays.
Bubble Sort is a simple sorting algorithm that arranges elements in an array by repeatedly comparing and swapping adjacent items. It iterates through the array multiple times, moving the largest (or smallest) elements to their correct position in each pass. Ideal for educational use and small datasets.
In C programming, fwrite() and fread() manage data storage and retrieval. fwrite() writes structures to a binary file, while fread() reads them back. This involves defining a structure, opening a file in binary mode, and using these functions to write and read data, ensuring file integrity and data consistency.
Direct Memory Access (DMA) in C programming is a powerful technique for efficient memory management and data transfer. It allows peripherals to directly access memory without CPU intervention, enhancing system performance.
In C programming, an array of integer pointers is declared similarly to a regular integer array, with the primary distinction being the addition of an asterisk (*) before the array name.
This content explores the implementation of pointers to functions in C and C++ programming. It delves into their syntax, usage, and benefits, such as dynamic function calls, callback functions, and efficient memory management.
Learn about trees, a hierarchical data structure. Explore terminology, binary tree types, and traversal methods like pre-order, in-order, post-order, and level-order. Understand insertion, deletion, and search operations.
Pointers is a type of data in C; hence we can also have pointers to pointers, just we have pointers to integers. Pointers to pointers offer flexibility in handling arrays, passing pointers variables to functions, etc.
Data hiding is a core principle in object-oriented programming, but C++ introduces friend functions that defy this rule, enabling access to private and protected class members from outside.
Dereferencing pointers involves accessing the value stored at the memory address pointed to by a pointer. Void pointers in C are generic pointers that can point to any data type but require explicit typecasting before dereferencing to access the correct data.
In C programming, strings are fundamental for working with textual data. Unlike some other languages, C handles strings using character arrays with a null terminator.
Hashing in data structures utilizes hash functions to map arbitrary-sized data to fixed-size values, enabling efficient storage and retrieval within large datasets commonly employed in hash tables and maps.
Explore the fundamentals of data structures and algorithms in this introductory course. Learn about data organization, algorithmic thinking, and foundational concepts essential for problem-solving in computer science.
A double subscripted variable, also known as a two-dimensional array, is a variable that has two subscripts assigned to it in order to represent a list of items.
Learn how to use command-line arguments in C with argc and argv to pass input and change a program's behavior at runtime.
In order to meet accessibility standards, a minimum color contrast is required. Here are some functions that enable contrast optimization in C++ applications.
In this article we will see the basics of windows programming in C++ and will also create a window.
This article briefly explains what a native Windows Dynamic Link Library (DLL) is, shows how to create a DLL using C++, how to consume it in C# and then explains how DLLs work.
The article shares how to build a DotCode webcam scanner from scratch using Dynamsoft Barcode Reader C/C++ SDK and OpenCV on Windows 10.
This article shows how to create a C++ CLR Class Library wrapper for unmanaged code.
Explains the basics of creating a static library, with explanations, and how to use a static library.
C++ and Python are two popular programming languages that are used for different purposes. C++ is known for its speed and efficiency, while Python is known for its ease of use and flexibility. In this article, we will compare the performance of C++ and Python using an example.
Parallel programming is a technique used to improve the performance of applications by splitting the work into multiple threads or processes that can run simultaneously on different CPUs or CPU cores. OpenMP is a popular API for parallel programming in C++, which provides a set of compiler directives, runtime library routines, and environment variables for shared memory parallel programming. In this article, we will demonstrate how to use OpenMP for parallel matrix multiplication in C++.
This article Provide a basic understanding of if-else and switch statement in C Programming, users are able to apply them by understanding their advantages and disadvantages.
You may have noticed that unlike other programming languages such as Java, Python, etc. C does not support string as a primitive (or we can say intrinsic) data type. Strings in C are implemented and manipulated by using character arrays. A string is a sequence of characters that is terminated by a null character.
Set up Visual Studio Community for C++ graphics programming with graphics.h and the WinBGIm library, then create and run a simple graphics project.
Everything on C, C++, MFC, not only its articles: the C, C++, MFC page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article