Skip to content

Add a program to check for palindrome for an entered string in C #43#94

Open
NEEHITGOYAL wants to merge 3 commits intopclubuiet:masterfrom
NEEHITGOYAL:first_program
Open

Add a program to check for palindrome for an entered string in C #43#94
NEEHITGOYAL wants to merge 3 commits intopclubuiet:masterfrom
NEEHITGOYAL:first_program

Conversation

@NEEHITGOYAL
Copy link

fixed #43

int n;
printf("enter string size\n");
scanf("%d",&n);
char string[n],string2[n];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the indentation uniform!!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not addressed @NEEHITGOYAL

@NEEHITGOYAL
Copy link
Author

indented the code as requested please check that out

#include <string.h>

int main()
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move braces in above line

int n;
printf("enter string size\n");
scanf("%d",&n);
char string[n],string2[n];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not addressed @NEEHITGOYAL

@NEEHITGOYAL
Copy link
Author

Is it ok now

@sagar-kalra
Copy link
Contributor

screenshot from 2018-10-25 21-52-10
Your code is still not properly indented!!

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.

Add a program to check for palindrome for an entered string in C

3 participants