Q:

Write a c program to calculate reverse string and length string help with library function

0

Write a c program to calculate reverse string and length string help with library function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Program:

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char str[100];
int i;
printf("Enter the string: ");
scanf("%s",str);
printf("Reverse of  str is %s\n",strrev](str));
printf("length of sting is %d",strlen(str));
getch();
}

Output:

Enter the string: Aryan
Reverse of str is nayrA
length of string is 5

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Programming Exercises With Solutions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a program in c to input and print details of... >>
<< write a c program to check whether the enter strin...