Jyotiprakash Mishrablog.jyotiprakash.org·Dec 27, 2023Basic Structure Programming QuestionsHere are 10 C programming exercises that involve structures: Student Database: Create a structure to represent a student with fields like name, roll number, and marks in different subjects. Write functions to input and display student details. Empl...DiscussC Programmingstruct
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023Build your structures differentlyIn C programming, structures are used to group different types of variables under a single name. Initializing a structure involves setting its member variables to specific values. Here are different ways to initialize structures in C, along with exam...DiscussC Programmingstruct
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023I can do it all! Struct + Array + Dynamic Allocation + Pointer ArithmeticLet's create a sample program that combines structures, arrays, dynamic allocation, and pointer arithmetic, along with comments for explanation: #include <stdio.h> #include <stdlib.h> // Define a structure representing a point in 3D space struct Poi...DiscussC Programmingdynamic-allocation
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 19, 2023You need structures!In C, structures are used to group different data types. They allow you to define your own data types by grouping variables of different types under a single name. Here's a sample code that demonstrates how to use structures to store information abou...Discuss·36 readsC Programmingnested struct
Alper Yazarforasynxasynx.dev·Nov 4, 2023Do not let the structure padding ruin your dayStructures (the struct keyword) in C are widely used, especially in the embedded world. For a couple of months, I have been writing a C program targeted to a Microblaze processor, a 32-bit soft processor from AMD (Xilinx). While adding new features t...Discuss·46 readsenglish
abdullah ajibadeajibadeabd.hashnode.dev·Aug 11, 2023Exploring Rust: A Guide to Structs and DebuggingRust, a modern programming language, has gained immense popularity due to its focus on memory safety, performance, and expressive syntax. One of the fundamental features of Rust is its powerful system for defining and using structs, along with effect...Discuss·11 likes·112 readsRust
Gideon Batureblog.benehub.tech·Jul 19, 2023Structs and Arrays in C: A Comprehensive GuideIntroduction In my earlier article, I have written extensively on Structs and Typedef, So do well to check it. In this article, I will be focusing more on how you can work with a struct of an array as well as an array of struct. You can also do well ...Discuss·10 likes·88 readsstruct
Gideon Batureblog.benehub.tech·Jul 18, 2023Structs and Typedef in C Programming: A Beginner's GuideIntroduction Structs in C programming or programming, in general, is a short form of Structures. While Typedef is a short form of the Type definition. We all know that before we can work with a variable in C Programming, we often time have to declare...Discuss·23 likes·148 readsstruct
Gizem Türkergizemturker.hashnode.dev·Jul 11, 2023Structures & Classes in SwiftWhen designing a code snippet of a system, we had data types such as Array Tuple, Dictionary, and Sets to hold multiple values simultaneously. But we need to standardize this as much as possible. So always using class and struct can make things eas...Discuss·145 readscrazyblogger
Peter Wisdomwisepeter.hashnode.dev·Jul 5, 2023Introduction to Structs in C: Managing Complex Data StructuresThe C language allows us to build custom data structures to better manage our data. While arrays are very useful and convenient, they have shortfalls that limit their usage. An array can only store a collection of identical objects; however, real-wor...Discuss·3 likes·50 readsstruct