Home > Back-end >  C language concept
C language concept

Time:06-02

1. A member of the structure can and structure variables with the same name?
2. Variables defined in the function of compound statement in this function within the scope of work?
3. And the problems in the figure, can a detailed answers?

CodePudding user response:

All problem, can ask the compiler, myself try not good
For the first question: the structure of the members can and structure variables with the same name? Can, why? Because language rules, can't,
A lot of books to speak of these rules is multifarious, tell you to remember these rules, can you really remember? Have you not tried, didn't miss, don't know why want such provisions are formulated,
Try as much as possible, after all, the compiler than people "real"

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related