i know this sounds totally ridiculous at the moment but trust me, i want something like "$variable" in php or "def" in groovy, by means of my approach is an automatic variable "data type" identification to IMPLEMENT into c language.
for example:
"def" is a replacement for a type name. In variable definitions it is used to indicate that you don't care about the type. In variable definitions it is mandatory to either provide a type name explicitly or to use "def" in replacement. This is needed to the make variable definitions detectable for the Groovy parser.
def dynamic = 1
dynamic = "I am a String stored in a variable of dynamic type"
OR
Let's try creating a variable containing a string, and a variable containing a number:
<?php
$txt="Hello World!";
$x=16;
?>
PHP is a Loosely Typed Language In PHP, a variable does not need to be declared before adding a value to it. *In the example above, you see that you do not have to tell PHP which data type the variable is.* PHP automatically converts the variable to the correct data type, depending on its value. *In a strongly typed programming language, you have to declare (define) the type and name of the variable before using it.*