This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
#include"conio.h" | |
#include"stdlib.h" | |
struct node | |
{ | |
int value; | |
struct node *next; | |
}*last; | |
struct node *head; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
#define ARRAY_SIZE 15 | |
int leng(char *ipstr) | |
{ | |
int i=0,length=0; | |
for(i=0;ipstr[i]!='\0';i++) | |
{ | |
length++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *reverse(char *str1) | |
{ | |
int leng1=0,i=0,j=0,midleng; | |
char temp; | |
leng1=leng(str1);// leng(str1) returns string length.. | |
j=leng1-1; | |
midleng=leng1/2; | |
for(i=0;i<midleng;i++) | |
{ | |
temp=str1[i]; |