[Solved] can’t understand where is syntax error [closed]


1) scanf("%s",input) and not scanf("%s",&input)

input holds the address of the array. &input passes the address of input.

2) Syntax of for loop is:

for ( init; condition; increment ) {
  //code
 }

Hence the for loop should be:

for(i=0,j=c-1;i<=j && j>=0;i++,j--)

6

solved can’t understand where is syntax error [closed]