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
Differentiate Source Codes from Object Codes
Differentiate between calloc and malloc.
What is difference between arrays and pointers?
Explain what is the benefit of using an enum rather than a #define constant?
What the different types of arrays in c?
What are pointers? Why are they used?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is c definition?
What is a built-in function in C?
How can I convert a number to a string?
How can I do serial ("comm") port I/O?
Was 2000 a leap year?
What is the code in while loop that returns the output of given code?
What is double pointer in c?
How do I convert a string to all upper or lower case?