Skip to content

Conversation

@abhis2007
Copy link

If you don't declare function before main as prototype only then also program will execute correctly and number of line can be reduced by defining function and their code at the top of main function.You not need to define function as prototype before main and their definition at below the main function.
And in line number 17 rather than while(x!=4) you should use c inbuilt library function exit()
available in #include<stdlib.h> because you have used this library for malloc function so I think you should exit() function.

@ashwek ashwek closed this Oct 8, 2019
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.

2 participants