what is the output?
#include
#include
int main()
{
char p[]="assignment";
char t;
int i,j;
for(i=0,j=strlen(p);i
{
t=p[i];
p[i]=p[j-1];
p[j-1]=t;
}
printf("%s",p);
return 0;
}
Answers
Answered by
1
The output is assignment
chandanam0310:
thank u soo much
Answered by
15
The output will show error... There sould be a +sign instead of ",".
Similar questions