Why do I have to specify data type each time in C?

后端 未结 11 2765
温柔的废话
温柔的废话 2020-12-12 18:17

As you can see from the code snippet below, I have declared one char variable and one int variable. When the code gets compiled, it must identify t

11条回答
  •  难免孤独
    2020-12-12 18:44

    printf and scanf are I/O functions that are designed and defined in a way to receive a control string and a list of arguments.

    The functions does not know the type of parameter passed to it , and Compiler also cant pass this information to it.

提交回复
热议问题