What will be the output of the following code?

#include

#include

int main() 

char p[]=”assignment”; 

char t; 

int i, j; 

for(i = 0, j = strlen(p); i < j; i++) 

t = p[i]; 

p[i] = p[j - i];

p[j - i]=t;

printf(“%s”,p); 

return 0;

}

1
Assignment
2
Nothing is printed
3
Tnemngissa
4
Tttttttt

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation