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
What is the explanation for cyclic nature of data types in c?
Is swift based on c?
What is scope and lifetime of a variable in c?
How do you determine the length of a string value that was stored in a variable?
How many types of operators are there in c?
How can you avoid including a header more than once?
How to explain the final year project as a fresher please answer with sample project
Explain a file operation in C with an example.
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
Can we declare function inside main?
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
Explain how can you tell whether a program was compiled using c versus c++?
I have seen function declarations that look like this
How macro execution is faster than function ?
How does selection sort work in c?