Aman Kumaraksaman.wtf·Sep 14, 2024Understanding pointers with structs in cThis is the second part of the series Understanding C pointer shenanigans. If you already understand pointers, go ahead, but if want to get a better understanding of pointers in c, go to the part 1, read that and come back. Now, as you are here, i ho...DiscussPointers in CC
Anupam Srivastavacodingstalk.hashnode.dev·Jun 12, 2024What is the main function in C++?In the realm of programming languages, C++ stands tall as a powerhouse, revered for its versatility and efficiency. Central to the structure of any C++ program is the main function. In this article, we delve into the intricacies of the main function...Discusspointers in c
João Gabrieljoaojgabriel.hashnode.dev·May 15, 2024Complex Pointers in C Made EasierRequirements Here’s what I’m assuming you can understand: a declaration int *x; initializes a variable x to have the value of a pointer that (in this case) points to an address in memory; at that address there is space allocated for an int (how much ...Discuss·134 readsC
Sukalyan Roysukalyanroy.hashnode.dev·Apr 1, 2024Exploring PointersPointers Pointers are an important aspect of learning programming. It's a part of every 101 course and used in almost every major algorithm or data structure under the hood for greater performance. it's good to have a basic understanding of pointers,...Discuss·11 likes·49 readspointers
Giang Ngogiangblackk.hashnode.dev·Feb 25, 2024Dangling pointers problem in C vs RustI encounter this original blog about Stack Memory and Dangling Pointer problem in Zig language, then I asked myself, how about other system programming languages, like C language and Rust, do they have the same problem? This blog is a very short arti...DiscussRust
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 27, 2023Basic Pointer Programming QuestionsHere are 10 C programming exercises that focus on pointers: Swap using Pointers: Write a program to swap the values of two integers using pointers. Array Manipulation: Create an array of integers and write a program to find the sum and average of t...DiscussC Programmingpointers
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023Constant Pointer vs. Pointer to a ConstantLet's explore the differences between a pointer to a constant, a constant pointer, and a constant pointer to a constant in C with detailed code examples: Pointer to a Constant: A pointer to a constant is a pointer that points to a constant value. T...Discuss·33 readsC Programmingpointers
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023What's in a name?In C, pointers and arrays are closely related concepts. In fact, arrays in C are essentially a contiguous block of memory, and the name of the array often decays into a pointer to the first element. This is why you can use pointer notation to access ...Discuss·31 readsC Programmingarrays
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 23, 2023Even pointers have to do maths!Understanding Pointer Arithmetic in C: A Hands-on Guide Pointer arithmetic is a powerful feature in the C programming language that allows for efficient navigation through memory. It's a concept that often confuses beginners but is fundamental for ta...Discuss·33 readsC Programmingpointer arithmetic
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 23, 2023Some pointers on pointersIn the C programming language, a pointer is a variable that stores the memory address of another variable. Pointers are powerful and versatile features of C that allow you to work with memory at a low level. Understanding pointers is crucial for task...Discuss·67 readsC Programmingpointers in c