What would you like to do?

C code programming to reverse a string?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

#include <stdio.h>

main ()
int i=0,k=0,j;
char a[30],b[30];
printf("\nEnter the string:\n");
for (i = 0,j=k-1; i <k,j>=0 ; i++,j--)
b[i] = a[j];


Thanks for the feedback!

Program to reverse a string in java using string class?

import java.util.*; public class Example { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please enter a string to revers

C program to concatenate two strings?

include   #include   void main()   {   char a[30],b[30];   clrscr();   printf("Enter the string a:");   gets(a);   printf("Enter the string b:"

Write a program to reverse a string using stack?

    #include   #include   typedef struct stack   {   char b[100];   int top;   }stack;   void push(stack *s,char k)   {   if(s->top

Program to reverse a string in java?

package sara78; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.lang.IndexOutOfBou

Write a program To print the reverse order of a string?

/* using ellipses (...) to indicate tabs for clarity */   reverse (char *str) { /* print a string backwards */  ... char *revstr = str; /* set to beginning of string *

Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in c anguage?

  These should work, if used correctly. // stores srcL + srcR into dest // NOTE: dest must be at least as large as srcL + srcR void strConcat(const char* srcL, const

In c program to reverse of given string using pointers?

/* To reverse the given string using pointer By $ */ #include #include void main () { char str[15]; char rev[15]; int i; int count; char* p; gets(str);

Write a c program to reverse string using static implementation of stack?

#include #include #include int main() { char str[100]; int i,temp; printf("Enter any string : "); gets(str); for(i=0; str[i]!=NULL; i++) { if(str[i+1]' ' || str[i+1]NULL) { fo

2 Write a program to reverse a given string array?

  Use for loop declare string array str[] and string variable l= string length of string array j=l for i=0 to i=l/2 then temp=str[i] str[i]=str[j-1] str[j-1]

How to Reverse a string using pointers in C?

include #include #include void main() { char str1[]="ravi kant yadav"; char str2[20],*p1,*p2; clrscr(); p1=str1+strlen(str1)-1; //Make p1 point to end of str1.

Write a program to find the reverse of a string in c?

include #include void main() { int i=0; char str[10]; clrscr(); printf("Enter the string:"); scanf("%c",str); while(str[i]!='\\0') i++; for(i=0;str[i]!='