C:-
#include "ExpCUtils.h"
struct SchNode * func(struct SchNode * head, int n)
{
if(head==NULL)
{
return NULL;
}
else
{
struct SchNode *temp,*pre=NULL;int i;
for(i=0;i
temp=head;
while(temp->nextNode!=NULL)
{
pre=temp;
temp=temp->nextNode;
}
temp->nextNode=head;
pre->nextNode=NULL;
head=temp;
}}return head;
}