Skip to content
Blog @ intZone
Blog @ intZone

Blog @ intZone

Month: September 2017

Posted on 2017-09-05

Pointer initialization in C

Just a simple program to see the effects of pointer initialization in C. Program: #include void main() { int *p; printf(“&p = %p, p = %p\n”, &p, p); /* // This will cause segmentation fault *p = 5; printf(“*p = %d\n”, *p); */ int *q = 0; printf(“&q = %p, q = %p\n”, &q, q); …

Continue reading “Pointer initialization in C”

About

  • Personal Homepage
  • Video recordings of my talks at Engineers.SG

Featured Articles

  • 3Cs for Coding – Consistency, Context, Continuity
  • 4 tips for writing documentation – Discoverable, Accessible, Searchable, Handleable (DASH)
  • Designing Developer-Friendly JSON for API responses
  • 10 criteria to rate oneself in a programming language or framework
  • Lessons from writing Swift framework that works in Objective-C app
  • The Pólya-Kipling Method

Categories

  • Android (3)
  • AWS (2)
  • Bash (1)
  • C / C++ (6)
  • CSS (6)
  • DevOps (3)
  • Excel (3)
  • General (15)
  • Git (1)
  • Hardware (1)
  • HTML (6)
  • iOS (9)
  • Java (9)
  • JavaScript (13)
  • Linux (1)
  • MySQL (3)
  • Networking (2)
  • Node.js (6)
  • PHP (8)
  • Play Framework (2)
  • PostgreSQL (1)
  • Python (3)
  • Regular Expression (1)
  • Scala (1)
  • Security (1)
  • Swift (10)
  • WordPress (1)
  • Zend Framework (1)

Archives

  • October 2024
  • March 2024
  • March 2023
  • January 2023
  • July 2022
  • May 2022
  • April 2022
  • December 2021
  • September 2021
  • August 2021
  • February 2021
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • March 2020
  • February 2020
  • September 2019
  • August 2019
  • April 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • March 2018
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • June 2016
  • February 2016
  • December 2015
  • August 2015
  • July 2015
  • March 2015
  • August 2014
  • July 2014

intZone.com

Proudly powered by WordPress