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

assignment10.c #33

Open
20urc3 opened this issue Feb 20, 2023 · 1 comment
Open

assignment10.c #33

20urc3 opened this issue Feb 20, 2023 · 1 comment

Comments

@20urc3
Copy link

20urc3 commented Feb 20, 2023

The assignment10.c is always returning "10" as value the way you did it.

#include <stdio.h>

int main()
{
    int array[10] = {0,1,2,3,4,5,6,7,8,9};

    printf("The array has %d elements.\n",sizeof(array) / sizeof(array[0]));

    return 0;
}

The code should be:

#include <stdio.h>

int main()
{
    int array[] = {0,1,2,3,4,5,6,7,8,9};

    printf("The array has %d elements.\n",sizeof(array) / sizeof(array[0]));

    return 0;
}
@samyckk
Copy link

samyckk commented Mar 27, 2023

Hey, @20urc3 I have great experience in c programming language and I am very interesting in fixing this issue. Please assign it to me.
Thank You

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

2 participants