write a program in reverse the string without using
pointer,array,global variable declaration,lib fun only using
a function?

Answer Posted / reshma pawar

#include<stdio.h>
void main()
{
int i;
char a[]={"Hello"};
printf("Reverse String is: ");
for(i=4;i>=0;i--)
printf("%c",a[i]);
}

Is This Answer Correct ?    14 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the explanation for cyclic nature of data types in c?

640


Is swift based on c?

628


What is scope and lifetime of a variable in c?

565


How do you determine the length of a string value that was stored in a variable?

642


How many types of operators are there in c?

609






How can you avoid including a header more than once?

553


How to explain the final year project as a fresher please answer with sample project

460


Explain a file operation in C with an example.

652


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

646


Can we declare function inside main?

560


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


Explain how can you tell whether a program was compiled using c versus c++?

569


I have seen function declarations that look like this

590


How macro execution is faster than function ?

658


How does selection sort work in c?

611