---
title: "Discussion on \"Detect datatype of variables in C\" | Hashnode"
description: "Discussion on \"Detect datatype of variables in C\". A simple Marco which uses generics in C to help you detect data type of any variable like you do with type() function in python."
url: "https://hashnode.com/posts/detect-datatype-of-variables-in-c/685cec133a7fb3fa6ccaee7c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Detect datatype of variables in C](https://hashnode.insanelogs.xyz/detect-datatype-of-variables-in-c?utm_source=hashnode&utm_medium=feed)

A simple Marco which uses generics in C to help you detect data type of any variable like you do with type() function in python.

Jun 26, 2025 · 2 min read · hashnode.insanelogs.xyz  
Updated Jul 20, 2025  
Read the article

-   [#generics](https://hashnode.com/tag/generics)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#c](https://hashnode.com/tag/c)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#data-types](https://hashnode.com/tag/data-types)
-   [#tips-and-tricks](https://hashnode.com/tag/tips-and-tricks)
-   [#generic-programming](https://hashnode.com/tag/generic-programming)

## Written by

[Insane Logs](https://hashnode.com/@insanelogs)

@insanelogs · IN

  
[View profile](https://hashnode.com/@insanelogs)

insanelogs

Hi, I am Insane. Insanelogs - Log of insane Main website: https://www.insanelogs.xyz Blog website: https://blog.insanelogs.xyz My objective with InsaneLogs is to share knowledge and quick tutorials across different domains of computer science that I learn every day — in a simple and easy-to-understand manner. The goal is to help you get started with a topic quickly, and then dive deeper on your own. I believe it’s always better to have something working or functional first, before reading a ton of theory about it!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
