Pages
Home
skip to main
|
skip to sidebar
Computer Programming
Write a program in c language to reverse a string by using strrev function or ptrint a string in reverse order
Sunday, 6 July 2014
#include <stdio.h>
#include <string.h>
#include <conio.h>
int main()
{
char str[100];
printf("Enter a string to reverse: ");
gets(sttr);
strrev(str); //function to reverse a string
printf("Reverse of entered string is: %s\n", str);
getch();
}
Newer Post
Older Post
Home
Categories
Advanced Programs
Array
Assembly Language
C Language
C Language Tutorials
C++
C++ Language
C++ Tutorials
Dev
File Handling
for loop
Functions
Graphics
If-Else-If (Conditions)
Interview Questions
Link List
Loops (For While Do-While)
Matrix
Mobile number details
OOP
pointer
Programs for Beginners
Recursion
Simple Programes (Beginers)
Strings
Structure
Switch
Track phone number
whose number is this calling me
whose number lookup
Archives
►
2018
(1)
►
February
(1)
▼
2014
(25)
▼
July
(10)
Write a program in c language to reverse a string ...
Write a program in c language to reverse a string ...
Write a program in c language to compare two strin...
Write a program in c language to compare two strin...
Write a program to Compare two strings by using st...
Write a program that will determine the prime fact...
Write a program in C language to add two numbers u...
Write a program in c language to print Floyd's tri...
Write a program to find given given number is arms...
Write a program in c language to find minimum numb...
►
June
(2)
►
May
(2)
►
March
(4)
►
February
(6)
►
January
(1)
►
2013
(116)
►
July
(16)
►
June
(8)
►
May
(27)
►
April
(65)
Search Box
Most Reading
Imagine a tollbooth at a bridge. Cars passing by the booth are expected to pay a 50 rupees toll. Mostly they do, but sometimes a car goes by without paying. The tollbooth keeps track of the number of cars that have gone by, and of the total amount of money collected. Model this tollbooth with a class called toll Booth. The two data items are a type unsigned int to hold the total number of cars, and a type double to hold the total amount of money collected. A constructor initializes both of these to 0. A member function called payingCar()increments the car total and adds 50 to the cash total. Another function, called nopayCar(), increments the car total but adds nothing to the cash total. Finally, a member function called display() displays the two totals. [Updated]
#include <iostream.h> class Tollboth //class declaretion { //attributes int cars; double collect; pub...
Write a program in c language to reverse a string by using strrev function or ptrint a string in reverse order
#include <stdio.h> #include <string.h> #include <conio.h> int main() { char str[100]; printf("Enter a s...
You just missed a call? Want to get details of that phone number?
Hey Guys, Today in this tutorial I'll teach you guys how you can get details of any mobile number. This is very simple to track any ph...
Write a program in assembly language to multiply matrices of 3x3 [Updated]
Tags: Multiplication is assembly language, multiplication of matrices in assembly language, Note: This program is compiled in EMU software...
Write a program in C++ to print Pascal Series on screen
#include <stdio.h> #include <conio.h> long factorial(int); int main() { int i, n, c; printf("Enter the ...
Create a class Rectangle with attributes length and width, each of which Defaults to 1. Provide member functions that calculate the perimeter and the area of the rectangle. Also, provide set and get functions for the length and width attributes. The set functions should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0. [Updated]
#include <iostream.h> class area //declare class { float width, lenght, areaofrect; //attributes public: area(...
Write a function to raise a floating point number to an integer power. [Updated]
#include <stdio.h> #include <conio.h> float raise_to_power(float num, int power) { float ans=1, i; for(i=1;...
Write a program to print all input lines that are longer than 80 characters.
#include <stdio.h> #include <conio.h> int main() { int m=0, i; char string[1000], ch; printf(...
Syntax and Flowchart of For loop
In for loop statements execute until the condition is satisfied Syntax: for(initialize counter variable ; condition ; increment/decrement...
Write a program calculate tomorrow's date.
#include <stdio.h> #include <conio.h> struct date { int day; int month; int year; } today, tomo...
Tags
Advanced Programs
Array
Assembly Language
C Language
C Language Tutorials
C++
C++ Language
C++ Tutorials
Dev
File Handling
for loop
Functions
Graphics
If-Else-If (Conditions)
Interview Questions
Link List
Loops (For While Do-While)
Matrix
Mobile number details
OOP
pointer
Programs for Beginners
Recursion
Simple Programes (Beginers)
Strings
Structure
Switch
Track phone number
whose number is this calling me
whose number lookup
About Me
Awais
Muhammad Awais Rahman
Unknown
Contact Form
Name
Email
*
Message
*
Copyright © 2013.
Computer Programming
.
All Rights Reserved