---
title: "What is Hungarian notation?"  
description: "What is Hungarian notation?"  
author: "Anonymous User"  
published: 2019-12-11  
updated: 2019-12-11  
canonical: https://www.mindstick.com/forum/145563/what-is-hungarian-notation  
category: "c#"  
tags: ["c#", ".net", "programming language", "naming convention"]  
reading_time: 2 minutes  

---

# What is Hungarian notation?

Hungarian notation.

## Replies

### Reply by Nishi Tiwari

![What is Hungarian notation?](https://www.mindstick.com/mindstickforums/b5e1d2f9-33ec-4403-95a1-4b9aed6d7e93/images/4b0cf97f-f856-44c5-a166-21f125bd22c6.png) **\**

**Hungarian Notation: -** The word starts with a lower case prefix and the [**rest of the word**](https://www.mindstick.com/forum/95355/how-does-a-selection-sort-work-for-an-array) is in the Pascal case. It comes in two forms.

The first one is in **system Hungarian** where prefix indicates data types of variable.

For example: - strStudentName. In this str represents string.

The second one is **apps Hungarian** which indicates a logical purpose.

For example- the row position.

#### Another Definition

Where the Hungarian notation is a [**naming convention**](https://www.mindstick.com/forum/145554/why-should-we-have-to-use-a-naming-convention-and-what-are-its-advantages) in computer programming that indicates either the type of object or the way it should be used.

That was originally proposed by Charles Simonyi, a programmer at Xerox PARC in the early 1980s.

These are two variations of Hungarian notation: Systems and Apps.

These both involve using a special prefix as part of the name to indicate an object's nature.

#### Hungarian notation prefixes

- b for boolean
- ch for char
- w for word
- dw for double word
- i for integer
- f or fp for floating-point
- d or db for double-precision floating point
- p for pointer
- u32 for unsigned 32-bit integer
- fn for function

![What is Hungarian notation?](https://www.mindstick.com/mindstickforums/b5e1d2f9-33ec-4403-95a1-4b9aed6d7e93/images/69e00a70-5e29-453f-b9c5-bdedf1a3c491.png)\


---

Original Source: https://www.mindstick.com/forum/145563/what-is-hungarian-notation

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
