Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part 08 If Statement #38

Closed
ravenleeblack opened this issue Jun 24, 2021 · 0 comments
Closed

Part 08 If Statement #38

ravenleeblack opened this issue Jun 24, 2021 · 0 comments

Comments

@ravenleeblack
Copy link

I am having problems with the if statement printing out the lower number as shown in read me. I am using the ex. input given.

What I don't get is that in the main function, it calls compound statements. In compound, we have the option for T_INT which would call the variable declaration function. which is actually just initializing not declaring.
int i;

so there is no need for assignment at this point of course.

In the compound is the T_IDENT which calls the assignment function which we need for declaring but there is no relation to the actual T_INTLIT.

i = 6;

or am I missing something???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant