variable name, function arguments at run time in C

前端 未结 4 1863
青春惊慌失措
青春惊慌失措 2021-01-12 15:07

Is it possible to know a function arguments and variables\' name types at runtime in C program ? For example, if I have a function:

int abc(int x, float y ,          


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-01-12 15:24

    There is no kind of reflection or similar things in C. If you want such facility - you should design some utilities, macros for this purpose and use special coding rules to achieve desired effect. But IMO - it won't be a readable and understandable C code.

提交回复
热议问题