mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #303] [CLOSED] Update stack_using_linkedlists.c #621
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/303
Author: @abhis2007
Created: 10/2/2019
Status: ❌ Closed
Base:
master← Head:patch-4📝 Commits (1)
8cf7390Update stack_using_linkedlists.c📊 Changes
1 file changed (+28 additions, -30 deletions)
View changed files
📝
data_structures/linked_list/stack_using_linkedlists.c(+28 -30)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.