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

I have fixed the bugs! #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

I have fixed the bugs! #54

wants to merge 3 commits into from

Conversation

Keerththanan
Copy link

I have fixed the bugs in all given program.

  1. In the min.c program, variable MAXINT did not declared and did not initialized, For that i just removed that and assign Array's 0th element as currmin.
    And also, comparison logic was wrong. If the Array[i] less than currmin then only currmin will be updated by Array[i] value.
  2. In the corrupt.c program, integers i,j did not initialized and used. And also when we run the code, there is an additional @ sign comes in.
    Don't know why. So I just increase the char array's length by 1.
  3. In numbers.c program, Double quotations has to be used for String.
  4. In theta.c program, NULL is the keyword. We can use none of the KEY WORDS to declare variables, class name, functions etc.

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

Successfully merging this pull request may close these issues.

1 participant