How to get variable type in c? The c object has className, php has get_class (), etc.
You look in the source code and find the type; since there are no dynamic types in C, a static type is all there is.
You cannot do this. C gives absolutely no way to switch to a variable type.
. C , . .
- sizeof , "" , ., , , , , .
sizeof
, C . C, - .
,
printf()
, , , , / . , . , , , .
C, . C id. void , , , - - , .
id
, , C .
(* Note: I discount the unions, as they are their type, and the real question is what type do you want to get out of it.)
Source: https://habr.com/ru/post/1743584/More articles:Open Queueing Solutions for search, mark done, then delete - queueC # / XNA Installation Instance Properties - c #Implement a scalable and high-performance web application - phpEasy XPath Question for iPhone - objective-cMUD (game) design concept question about time related events - pythonUnknown xsi attribute: enter XmlSerializer - c #awk / sed / shell to join / concatenate data - joinЯвляется ли это хорошим подходом для выполнения списка операций над структурой данных в Python? - pythonContinuous Integration with Reporting Services - sql-server-2008How do you plan on programming in Linux? - c ++All Articles