Home Tutorialhelp Allcomments C Tutorials C String Reverse

 
 

Comments

 
User Comments for the tutorial:

C String Reverse



Total comments: 7      View Tutorial    Discuss: C String Reverse
Advertisement
Comments

hi
thanks , u have helped me in lot many ways 

answer only C program language
not used pointer. i have input string: vishad output display alphabetical revese output need:vsihda 

really?
Did you test your code before posting? It just switches the first and last char because there is no loop. Try this: ------------------------- #include <stdio.h> #include <string.h> #define BUFSIZE 40 int reverse(char *s); int main()  

programming C
Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7. 

Programming in ANSI C
A set of two linear equations with two unknowns x1 and x2 is given below: 

Programming in ANSI C
Admission to a professional course is subject to the following conditions; a) Marks in Mathematics >=60 b) Marks in Physics >=50 c) Marks in Chemistry >=40 d) Total in all three subjects>=200 or Total in Mathematics and Physics >=150 Given the  

there is a problem in the code reverse string
the function reverse() shall be defined as below: int reverse(int i) { if (i<(strlen(st)/2)) { char c; for(i = 0;i<(strlen(st)/2);i++) { c= st[i]; st[i]=st[strlen(st)-i-1]; st[strlen(st)-i-1]=c; } }  

Related Tutorial and Articles
C++

C Tutorials
() is created.   C String Reverse... C Tutorials       In this section we have given large number of tutorials on C 

Blog

Site map - C Tutorials
; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse | C String Substring | C String Tokenizer | C String uppercase | C...; C Tutorials  | Java Tutorials | PHP Tutorials  | Linux 

Java Tips and Examples

String Reverse in Java
." String before reverse: hi how are you. String after reverse: .uoy... String Reverse in Java       In this example we are going to reverse a given string 

C Tutorials

C String Reverse
C String Reverse       In this section, you will study how to reverse a string. You can see... strlen(). Then string st[i] and st[strlen(st)-i-1] are swapped as: c= st[i 

Java Tips and Examples

String Reverse Using StringUtils
String Reverse Using StringUtils       In this example we are going to reverse a given string using... and String.trim() for trim. The methods used: reverse(String str 

Programming Tutorials

C++Tutorials
other tutorials, such as C++: Annotations by Frank Brokken and Karel Kubat...; The CPlusPlus Language Tutorial These tutorials explain the C++ language... Borland C++ Builder 3 Page -Tutorials This section of my Builder web 

CVS Questions

c++
c++  Write a console based C++ program that reads student information... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D...: ID: int FirstName: string SecondName: string FirstExam: int SecondExam 

Java Beginners

hi need help with C++ programming!
hi need help with C++ programming!  how do i : b. Store numbers / characters into the file (output) c. Retrieve numbers / characters from the file...; "Unable to open file"; return 0; } c) #include <iostream> #include < 

Mobile Applications Questions

Parsing string in objective c
Parsing string in objective c  Hi, How can i parse a string in Objective c?? Thanks.   Parsing string in objective c This example will also help you to separate the strings separated by one component 

Java Beginners

reverse
reverse  program to read a string and print the reverse string   Hi Friend, Try the following code: import java.util.*; public class ReverseString{ public static void main(String[]args){ Scanner input=new 

Advertisements Advertisements
 

 

 

DMCA.com