• Feed
  • Discussions
pointer arithmetic

pointer arithmetic

#pointer-arithmetic
0 followers·3 articles

pointer arithmetic

#pointer-arithmetic·0 followers·3 articles
pointer arithmetic
Jyotiprakash Mishra
Jyotiprakash Mishra
blog.jyotiprakash.org·Dec 24, 2023
Dec 24, 2023

I can do it all! Struct + Array + Dynamic Allocation + Pointer Arithmetic

Let'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...

Discuss·236 reads
C Programming
dynamic-allocation
Jyotiprakash Mishra
Jyotiprakash Mishra
blog.jyotiprakash.org·Dec 24, 2023
Dec 24, 2023

What'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·34 reads
C Programming
arrays
Jyotiprakash Mishra
Jyotiprakash Mishra
blog.jyotiprakash.org·Dec 23, 2023
Dec 23, 2023

Even 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·40 reads
C Programming
pointer arithmetic

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Understanding Oone Gas and Fees: The Fuel Behind Every Blockchain Transaction.

Patience Uyire·55 reads

SolvBTC Rolls Out a Next-Gen Platform for Secure, Scalable, and Transparent Bitcoin DeFi

Wissy Ak·45 reads

SolvBTC, 안전하고 확장 가능하며 투명한 비트코인 디파이 플랫폼 출시

Wissy Ak·35 reads

Top commenters this week

Lyn Alden
Lyn Alden
Kora Benson
Kora Benson
alejandro saenz
alejandro saenz
Manjiri C
Manjiri C
Teresa Jesse
Teresa Jesse

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior